digestIdentifierHex method Null safety

String digestIdentifierHex(
  1. HashAlgorithm algorithm
)

Implementation

String digestIdentifierHex(HashAlgorithm algorithm) {
  final o = ASN1ObjectIdentifier(Pkcs.hashAlgorithmIdentifiers[algorithm]);
  return o.encode().map((e) => e.toRadixString(16).padLeft(2, '0')).join();
}