initParameters method
void
initParameters(
- covariant KeyParameter parameters
)
override
Implementation
@override
void initParameters(covariant KeyParameter parameters) {
var key = parameters.key;
var macKey = Uint8List.view(key.buffer, key.offsetInBytes, key.length ~/ 2);
var encKey =
Uint8List.view(key.buffer, key.offsetInBytes + key.length ~/ 2);
_underlyingMac.init(KeyParameter(macKey));
_underlyingCipher.init(
isEncrypting!,
PaddedBlockCipherParameters(
ParametersWithIV(
KeyParameter(encKey),
iv!,
),
null));
}