TomAesGcmCacheCipher constructor
A cipher over key, which must be 32 bytes.
Implementation
TomAesGcmCacheCipher(Uint8List key, {Random? random})
: _key = Uint8List.fromList(key),
_random = random ?? Random.secure() {
if (key.length != _keyBytes) {
throw ArgumentError.value(
key.length,
'key',
'An AES-256 key is $_keyBytes bytes',
);
}
}