hkdfDeriveSha256 static method
Strict RFC 5869 HKDF-SHA-256 quick call, routed through the active
backend (pure-Dart or native Rust). Always Extract-then-Expand;
omitted salt defaults to 32 zeros (ยง2.2) on every backend.
Prefer this over hdfkDerive for interoperable derivations.
Implementation
static BuBytes hkdfDeriveSha256({
required List<int> ikm,
int length = 32,
List<int>? salt,
List<int>? info,
}) {
_checkHkdfLength("hkdfDeriveSha256", length);
return blockchainUtils.api.keyDerivation.hkdfSha256DeriveKey(
ikm: ikm,
length: length,
salt: salt,
info: info,
);
}