init method
Init the MAC with its initialization params
. The type of
CipherParameters depends on the algorithm being used (see
the documentation of each implementation to find out more).
Implementation
@override
void init(covariant KeyParameter keyParams) {
final zeroIV = Uint8List(keyParams.key.length);
_params = ParametersWithIV(keyParams, zeroIV);
// Initialize before computing L, Lu, Lu2
_cipher.init(true, _params!);
//initializes the L, Lu, Lu2 numbers
var L = Uint8List(_zeros.length);
_cipher.processBlock(_zeros, 0, L, 0);
_lu = _doubleLu(L);
_lu2 = _doubleLu(_lu);
// Reset _buf/_cipher state after computing L, Lu, Lu2
reset();
}