ASN1EncryptedData.fromSequence constructor

ASN1EncryptedData.fromSequence(
  1. ASN1Sequence seq
)

Implementation

ASN1EncryptedData.fromSequence(ASN1Sequence seq) {
  version = seq.elements!.elementAt(0) as ASN1Integer;
  if (seq.elements!.length >= 2) {
    var el = seq.elements!.elementAt(1);
    if (el is ASN1Sequence) {
      encryptedContentInfo = ASN1EncryptedContentInfo.fromSequence(el);
    }
  }
}