 
 import Foundation
 
-
 public class PKCS7 {
-    
     var derData: Data!
     var asn1: [ASN1Object]!
     var mainBlock: ASN1Object!

        }
        return out
    }
    
    
    public var data: Data? {
        if let block = mainBlock.findOid(OID_Data) {
            if let dataBlock = block.parent?.sub?.last {

    public var digestAlgorithmName: String? {
        return ASN1Object.oidDecodeMap[digestAlgorithm ?? ""] ?? digestAlgorithm
    }

    public var certificate: X509Certificate? {
        if let blockSigner = mainBlock.sub(3)?.sub, blockSigner.count > 0  {
            return X509Certificate(asn1: blockSigner[0])
