decrypt(_:using:iv:)

Decrypts data using AES-CBC.

AES_CBC.swift:106
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.