levelMlDsa static method
Requires ML-DSA level to be 44, 65, or 87, throws BuError otherwise.
Implementation
static void levelMlDsa(int level, String operation) {
if (level != 44 && level != 65 && level != 87) {
throw CoreErrors.invalidOperationArguments(
operation,
name: 'level',
reason: 'must be 44, 65, or 87, got $level',
);
}
}