hpkeRepresentation(kem:)

    Creates a serialized representation of the public key.

    HPKE-NIST-EC-KEMs.swift:59
    func hpkeRepresentation(kem: HPKE.KEM) throws -> Data

    Returns

    The serialized representation of the public key.

    Throws

    CryptoKit/HPKE/Errors/inconsistentCiphersuiteAndKey if the key encapsulation mechanism requested is incompatible with this public key.

    • kem: The Key Encapsulation Mechanism to use with the public key.

    Other members in extension

    Typealiases

    Type members

    Instance members