hkdfDeriveSha512 static method

BuBytes hkdfDeriveSha512({
  1. required List<int> ikm,
  2. int length = 32,
  3. List<int>? salt,
  4. List<int>? info,
})

Strict RFC 5869 HKDF-SHA-512 quick call, routed through the active backend (pure-Dart or native Rust). Always Extract-then-Expand; omitted salt defaults to 64 zeros (ยง2.2) on every backend. Prefer this over hdfkDerive for interoperable derivations.

Implementation

static BuBytes hkdfDeriveSha512({
  required List<int> ikm,
  int length = 32,
  List<int>? salt,
  List<int>? info,
}) {
  _checkHkdfLength("hkdfDeriveSha512", length);
  return blockchainUtils.api.keyDerivation.hkdfSha512DeriveKey(
    ikm: ikm,
    length: length,
    salt: salt,
    info: info,
  );
}