             return offset
         }
         
-        open static func stripHeaderIfAny(_ derKey: Data) -> Data? {
+        public static func stripHeaderIfAny(_ derKey: Data) -> Data? {
             guard let offset = getPKCS1DEROffset(derKey) else {
                 return nil
             }
             return derKey.subdata(in: offset..<derKey.count)
         }
         
-        open static func hasCorrectHeader(_ derKey: Data) -> Bool {
+        public static func hasCorrectHeader(_ derKey: Data) -> Bool {
             return getPKCS1DEROffset(derKey) != nil
         }
         

            return (privDERKey, pubDERKey)
        }
        
        open static func encrypt(_ data: Data, derKey: Data, tag: Data, padding: AsymmetricPadding,
                                 digest: DigestAlgorithm) throws -> Data {
            let key = try importFromDERKey(derKey)
            defer { CCRSACryptorRelease!(key) }
            
            var bufferSize = getKeySize(key)
            var buffer = Data(count: bufferSize)
            
            let status = buffer.withUnsafeMutableBytes {
                (bufferBytes: UnsafeMutablePointer<UInt8>) -> CCCryptorStatus in
                return CCRSACryptorEncrypt!(
                    key,
                    padding.rawValue,
                    (data as NSData).bytes,
                    data.count,
                    bufferBytes,
                    &bufferSize,
                    (tag as NSData).bytes, tag.count,
                    digest.rawValue)
            }
            guard status == noErr else { throw CCError(status) }
            
            buffer.count = bufferSize

        
        fileprivate static let aes128CBCInfo = "Proc-Type: 4,ENCRYPTED\nDEK-Info: AES-128-CBC,"
        fileprivate static let aes256CBCInfo = "Proc-Type: 4,ENCRYPTED\nDEK-Info: AES-256-CBC,"
        fileprivate static let aesInfoLength = aes128CBCInfo.count
        fileprivate static let aesIVInHexLength = 32
        fileprivate static let aesHeaderLength = aesInfoLength + aesIVInHexLength
        
