AEADContext
BoringSSLAEAD.swift:36- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
class AEADContext
class AEADContext
import CryptoBoringWrapper
enum BoringSSLAEAD
An abstraction over a BoringSSL AEAD
init<Key>(cipher: BoringSSLAEAD, key: Key) throws where Key : ContiguousBytes
func open<Nonce, AuthenticatedData>(ciphertext: Data, nonce: Nonce, tag: Data, authenticatedData: AuthenticatedData) throws -> Data where Nonce : ContiguousBytes, AuthenticatedData : DataProtocol
The main entry point for opening data. Covers the full gamut of types, including discontiguous data types. This must be inlinable.
func open<Nonce, AuthenticatedData>(combinedCiphertextAndTag: Data, nonce: Nonce, authenticatedData: AuthenticatedData) throws -> Data where Nonce : ContiguousBytes, AuthenticatedData : DataProtocol
An additional entry point for opening data where the ciphertext and the tag can be provided as one combined data . Covers the full gamut of types, including discontiguous data types. This must be inlinable.
func seal<Plaintext, Nonce, AuthenticatedData>(message: Plaintext, nonce: Nonce, authenticatedData: AuthenticatedData) throws -> (ciphertext: Data, tag: Data) where Plaintext : DataProtocol, Nonce : ContiguousBytes, AuthenticatedData : DataProtocol
The main entry point for sealing data. Covers the full gamut of types, including discontiguous data types. This must be inlinable.