factoryConfig property
FactoryConfig
factoryConfig
final
Intended for internal use.
Implementation
static final FactoryConfig factoryConfig = DynamicFactoryConfig.regex(
BlockCipher,
r'^(.+)/CFB-([0-9]+)$',
(_, final Match match) => () {
var underlying = BlockCipher(match.group(1)!);
var blockSizeInBits = int.parse(match.group(2)!);
if ((blockSizeInBits % 8) != 0) {
throw RegistryFactoryException.invalid(
'Bad CFB block size: $blockSizeInBits (must be a multiple of 8)');
}
return CFBBlockCipher(underlying, blockSizeInBits ~/ 8);
});