Initializerswift-crypto 3.12.2CryptoBoringWrapper
init(cipher:key:)
BoringSSLAEAD.swift:39- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
init<Key>(cipher: BoringSSLAEAD, key: Key) throws where Key : ContiguousBytes
init<Key>(cipher: BoringSSLAEAD, key: Key) throws where Key : ContiguousBytes
s19CryptoBoringWrapper0B7SSLAEADO11AEADContextC6cipher3keyAeC_xtKc20FoundationEssentials15ContiguousBytesRzlufc
What are these?6JCO0
import CryptoBoringWrapper
class AEADContext
enum BoringSSLAEAD
An abstraction over a BoringSSL AEAD
protocol ContiguousBytes
Indicates that the conforming type is a contiguous collection of raw bytes whose underlying storage is directly accessible by withUnsafeBytes.
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.