decrypt(_:using:iv:noPadding:)

Decrypts data using AES-CBC.

AES_CBC.swift:118
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
static func decrypt<Ciphertext>(_ ciphertext: Ciphertext, using key: SymmetricKey, iv: AES._CBC.IV, noPadding: Bool) throws -> Data where Ciphertext : DataProtocol

Parameters

ciphertext

The encrypted ciphertext.

key

A decryption key.

iv

The initialization vector.

noPadding

If this is set to true, padding won’t be removed.

Returns

The decrypted message.