SwiftstructMessageProtection
struct MessageProtection.DAOnlineRatchet
Members 8
- field
var incomingDirection: MessageProtection.SymmetricRatchet - field
let keyID: Foundation.Data - field
var outgoingDirection: MessageProtection.SymmetricRatchet - func
open(_: MessageProtection.DAEncryptedMessage, authenticatedData: Foundation.Data?) throws -> Foundation.Data - func
seal(message: Foundation.Data, authenticatedData: Foundation.Data?) throws -> MessageProtection.DAEncryptedMessage - func
serializedData() -> Foundation.Data - init
init(incomingDirectionKey: CryptoKit.SymmetricKey, outgoingDirectionKey: CryptoKit.SymmetricKey, publicKey: CryptoKit.XWingMLKEM768X25519.PublicKey) throws -> MessageProtection.DAOnlineRatchet - init
init(data: Foundation.Data, keyID: Foundation.Data) throws -> MessageProtection.DAOnlineRatchet
Header
struct DAOnlineRatchet { let keyID: Foundation.Data var incomingDirection: MessageProtection.SymmetricRatchet var outgoingDirection: MessageProtection.SymmetricRatchet init(incomingDirectionKey: CryptoKit.SymmetricKey, outgoingDirectionKey: CryptoKit.SymmetricKey, publicKey: CryptoKit.XWingMLKEM768X25519.PublicKey) throws init(data: Foundation.Data, keyID: Foundation.Data) throws func serializedData() -> Foundation.Data func open(_: MessageProtection.DAEncryptedMessage, authenticatedData: Foundation.Data?) throws -> Foundation.Data func seal(message: Foundation.Data, authenticatedData: Foundation.Data?) throws -> MessageProtection.DAEncryptedMessage }