 }
 
 // Internal protocol for version-specific decryptors.
-private protocol VersionedDecryptorType: RNCryptorType {
+private protocol VersionedDecryptorType: CryptorType {
     static var preambleSize: Int { get }
     static func canDecrypt(preamble: NSData) -> Bool
     init(password: String)

import Foundation
import CommonCrypto

/// The `RNCryptorType` protocol defines generic API to a mutable,
/// incremental, password-based encryptor or decryptor. Its generic
/// usage is as follows:

    /// for code that is neutral on whether it is encrypting or decrypting.
    ///
    /// - throws: `Error`
    private func oneshot(data: NSData) throws -> NSData {
        let result = NSMutableData(data: try updateWithData(data))
        result.appendData(try finalData())
        return result
    }
}

private let CCErrorDomain = "com.apple.CommonCrypto"

