             let padding = SecPadding.PKCS1
             
             let keySize: Int = {
-              let adjustedBlockSize = blockSize - ivSize - 42 // Assumes SHA1-OAEP is used
+              let adjustedBlockSize = blockSize - ivSize - 11 // Assumes SHA1-OAEP is used
                 
                 if adjustedBlockSize >= Int(kCCKeySizeAES256) {
                     return kCCKeySizeAES256

        
        return nil
    }
    
    ///
    /// Decrypt the encrypted data
    ///

            let padding = SecPadding.PKCS1
            
            let keySize: Int = {
                let adjustedBlockSize = blockSize - ivSize - 11 // Assumes SHA1-OAEP is used
                
                if adjustedBlockSize >= Int(kCCKeySizeAES256) {
                    return kCCKeySizeAES256
