         }
         return nil
     }
-    
-    
 }
-
-
 
 enum PKCS7Error: Error {
     case notSupported
     case parseError
 }
-
-
 
 private func firstLeafValue(block: ASN1Object) -> Any? {
     if let sub = block.sub, sub.count > 0 {

    private let OID_EnvelopedData = "1.2.840.113549.1.7.3"
    
    public init(data: Data) throws {
        
        derData = data
        
        asn1 = try ASN1DERDecoder.decode(data: derData)
        
        guard asn1.count > 0 else {


import Foundation

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