SwiftstructMessageProtection

struct MessageProtection.DAOnlineRatchet

Members 8

  1. fieldvar incomingDirection: MessageProtection.SymmetricRatchet
  2. fieldlet keyID: Foundation.Data
  3. fieldvar outgoingDirection: MessageProtection.SymmetricRatchet
  4. funcopen(_: MessageProtection.DAEncryptedMessage, authenticatedData: Foundation.Data?) throws -> Foundation.Data
  5. funcseal(message: Foundation.Data, authenticatedData: Foundation.Data?) throws -> MessageProtection.DAEncryptedMessage
  6. funcserializedData() -> Foundation.Data
  7. initinit(incomingDirectionKey: CryptoKit.SymmetricKey, outgoingDirectionKey: CryptoKit.SymmetricKey, publicKey: CryptoKit.XWingMLKEM768X25519.PublicKey) throws -> MessageProtection.DAOnlineRatchet
  8. initinit(data: Foundation.Data, keyID: Foundation.Data) throws -> MessageProtection.DAOnlineRatchet
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
}