factoryConfig property

FactoryConfig factoryConfig
final

Implementation

static final FactoryConfig factoryConfig = DynamicFactoryConfig.prefix(
    StreamCipher,
    'ChaCha20/',
    (_, final Match match) => () {
          var rounds = int.parse(match.group(1)!);
          return ChaCha20Engine.fromRounds(rounds);
        });