Static Methodswift-crypto 3.12.2_CryptoExtras->Crypto
decrypt(_:using:iv:)
Decrypts data using AES-CBC.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
static func decrypt<Ciphertext>(_ ciphertext: Ciphertext, using key: SymmetricKey, iv: AES._CBC.IV) throws -> Data where Ciphertext : DataProtocol
Parameters
- ciphertext
The encrypted ciphertext.
- key
A decryption key.
- iv
The initialization vector.
Returns
The decrypted message.