SHAKEDigest constructor
SHAKEDigest([
- int bitLength = 256
Implementation
SHAKEDigest([int bitLength = 256]) {
switch (bitLength) {
case 128:
case 256:
init(bitLength);
break;
default:
throw StateError(
'invalid bitLength ($bitLength) for SHAKE must only be 128 or 256');
}
}