factoryConfig property

FactoryConfig factoryConfig
final

Intended for internal use.

Implementation

static final FactoryConfig factoryConfig = DynamicFactoryConfig(
    Digest,
    _nameRegex,
    (_, final Match match) => () {
          var bitLength = int.parse(match.group(1)!);
          if ((bitLength % 8) != 0) {
            throw RegistryFactoryException(
                'Digest length for SHA-512/t is not a multiple of 8: $bitLength');
          }
          return SHA512tDigest(bitLength ~/ 8);
        });