Security Changes
Security
Added kSecPaddingSigRaw
Modified SecKeyDecrypt(SecKey!, SecPadding, UnsafePointer<UInt8>, Int, UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<Int>) -> OSStatus
Declaration | |
---|---|
From | func SecKeyDecrypt(_ key: SecKey!, _ padding: SecPadding, _ cipherText: UnsafePointer<UInt8>, _ cipherTextLen: UInt, _ plainText: UnsafeMutablePointer<UInt8>, _ plainTextLen: UnsafeMutablePointer<UInt>) -> OSStatus |
To | func SecKeyDecrypt(_ key: SecKey!, _ padding: SecPadding, _ cipherText: UnsafePointer<UInt8>, _ cipherTextLen: Int, _ plainText: UnsafeMutablePointer<UInt8>, _ plainTextLen: UnsafeMutablePointer<Int>) -> OSStatus |
Modified SecKeyEncrypt(SecKey!, SecPadding, UnsafePointer<UInt8>, Int, UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<Int>) -> OSStatus
Declaration | |
---|---|
From | func SecKeyEncrypt(_ key: SecKey!, _ padding: SecPadding, _ plainText: UnsafePointer<UInt8>, _ plainTextLen: UInt, _ cipherText: UnsafeMutablePointer<UInt8>, _ cipherTextLen: UnsafeMutablePointer<UInt>) -> OSStatus |
To | func SecKeyEncrypt(_ key: SecKey!, _ padding: SecPadding, _ plainText: UnsafePointer<UInt8>, _ plainTextLen: Int, _ cipherText: UnsafeMutablePointer<UInt8>, _ cipherTextLen: UnsafeMutablePointer<Int>) -> OSStatus |
Modified SecKeyGetBlockSize(SecKey!) -> Int
Declaration | |
---|---|
From | func SecKeyGetBlockSize(_ key: SecKey!) -> UInt |
To | func SecKeyGetBlockSize(_ key: SecKey!) -> Int |
Modified SecKeyRawSign(SecKey!, SecPadding, UnsafePointer<UInt8>, Int, UnsafeMutablePointer<UInt8>, UnsafeMutablePointer<Int>) -> OSStatus
Declaration | |
---|---|
From | func SecKeyRawSign(_ key: SecKey!, _ padding: SecPadding, _ dataToSign: UnsafePointer<UInt8>, _ dataToSignLen: UInt, _ sig: UnsafeMutablePointer<UInt8>, _ sigLen: UnsafeMutablePointer<UInt>) -> OSStatus |
To | func SecKeyRawSign(_ key: SecKey!, _ padding: SecPadding, _ dataToSign: UnsafePointer<UInt8>, _ dataToSignLen: Int, _ sig: UnsafeMutablePointer<UInt8>, _ sigLen: UnsafeMutablePointer<Int>) -> OSStatus |
Modified SecKeyRawVerify(SecKey!, SecPadding, UnsafePointer<UInt8>, Int, UnsafePointer<UInt8>, Int) -> OSStatus
Declaration | |
---|---|
From | func SecKeyRawVerify(_ key: SecKey!, _ padding: SecPadding, _ signedData: UnsafePointer<UInt8>, _ signedDataLen: UInt, _ sig: UnsafePointer<UInt8>, _ sigLen: UInt) -> OSStatus |
To | func SecKeyRawVerify(_ key: SecKey!, _ padding: SecPadding, _ signedData: UnsafePointer<UInt8>, _ signedDataLen: Int, _ sig: UnsafePointer<UInt8>, _ sigLen: Int) -> OSStatus |
Modified SecRandomCopyBytes(SecRandomRef, Int, UnsafeMutablePointer<UInt8>) -> Int32
Declaration | |
---|---|
From | func SecRandomCopyBytes(_ rnd: SecRandom!, _ count: UInt, _ bytes: UnsafeMutablePointer<UInt8>) -> Int32 |
To | func SecRandomCopyBytes(_ rnd: SecRandomRef, _ count: Int, _ bytes: UnsafeMutablePointer<UInt8>) -> Int32 |
Modified SecRandomRef
Declaration | |
---|---|
From | typealias SecRandomRef = SecRandom |
To | typealias SecRandomRef = COpaquePointer |
Modified kSecRandomDefault
Declaration | |
---|---|
From | let kSecRandomDefault: SecRandom! |
To | let kSecRandomDefault: SecRandomRef |