Enumerationswift-crypto 3.12.2_CryptoExtras->Crypto
_SIV
AES in GCM SIV mode with 128-bit tags.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
enum _SIV
AES in GCM SIV mode with 128-bit tags.
enum _SIV
import Crypto
A cryptography library for Swift.
import _CryptoExtras
Provides additional cryptographic APIs that are not available in CryptoKit (and therefore the core Crypto library).
enum GCM
The Advanced Encryption Standard (AES) Galois Counter Mode (GCM) cipher suite.
enum AES
A container for Advanced Encryption Standard (AES) ciphers.
static func open(_ sealedBox: SealedBox, using key: SymmetricKey) throws -> Data
Authenticates and decrypts data using AES-GCM-SIV.
static func open<AuthenticatedData>(_ sealedBox: SealedBox, using key: SymmetricKey, authenticating authenticatedData: AuthenticatedData) throws -> Data where AuthenticatedData : DataProtocol
Authenticates and decrypts data using AES-GCM-SIV.
static func seal<Plaintext>(_ message: Plaintext, using key: SymmetricKey, nonce: Nonce? = nil) throws -> SealedBox where Plaintext : DataProtocol
Encrypts and authenticates data using AES-GCM-SIV.
static func seal<Plaintext, AuthenticatedData>(_ message: Plaintext, using key: SymmetricKey, nonce: Nonce? = nil, authenticating authenticatedData: AuthenticatedData) throws -> SealedBox where Plaintext : DataProtocol, AuthenticatedData : DataProtocol
Encrypts and authenticates data using AES-GCM-SIV.
struct Nonce
struct SealedBox