messageDigest property Null safety

Uint8List? messageDigest

The embedded message digest, if any

Implementation

Uint8List? get messageDigest {
  for (final attr in signedAttributes) {
    if (attr.key.objectIdentifierAsString == Pkcs.messageDigest) {
      final digest = attr.value[0] as ASN1OctetString;
      return digest.octets;
    }
  }
  return null;
}