hmacSha384Hash static method

BuBytes hmacSha384Hash(
  1. List<int> key,
  2. List<int> data
)

Calculate the HMAC-SHA-384 hash of the input data using the provided key

Implementation

static BuBytes hmacSha384Hash(List<int> key, List<int> data) {
  final hm = blockchainUtils.api.hash.hmacSha384(key);
  try {
    hm.update(data);
    return hm.digest().asBytes;
  } finally {
    hm.clean();
  }
}