ASN1EncryptedContentInfo.fromSequence constructor
ASN1EncryptedContentInfo.fromSequence(
- ASN1Sequence seq
Implementation
ASN1EncryptedContentInfo.fromSequence(ASN1Sequence seq) {
contentType = seq.elements!.elementAt(0) as ASN1ObjectIdentifier;
if (seq.elements!.length >= 2) {
var el = seq.elements!.elementAt(1);
if (el is ASN1Sequence) {
contentEncryptionAlgorithm = ASN1AlgorithmIdentifier.fromSequence(el);
}
}
if (seq.elements!.length >= 3) {
var asn1Obj = seq.elements!.elementAt(2);
encryptedContent = asn1Obj.valueBytes;
}
}