open(_:)

    Decrypts a message, if the ciphertext is valid.

    HPKE.swift:314
    mutating func open<C>(_ ciphertext: C) throws -> Data where C : DataProtocol

    Parameters

    ciphertext

    The ciphertext message to decrypt.

    Returns

    The resulting cleartext message if the message is authentic.

    You can call this method multiple times to decrypt a series of messages. When using this method, the recipient of the ciphertext messages needs to decrypt them in the same order that the sender encrypts them.

    Other members in extension

    Type members

    Instance members