rawRepresentation
TypeScriptget rawRepresentation(): ArrayBufferSwift declarationvar rawRepresentation: Data { get }A representation of the Curve25519 public key as a collection of bytes.
struct · iOS 13.0+ · SDK 27.1
struct PublicKeyA Curve25519 public key used for key agreement.
get rawRepresentation(): ArrayBufferSwift declarationvar rawRepresentation: Data { get }A representation of the Curve25519 public key as a collection of bytes.
static initRawRepresentation(rawRepresentation: ArrayBuffer): Curve25519_KeyAgreement_PublicKeySwift declarationinit<D>(rawRepresentation: D) throws where D : ContiguousBytesCreates a Curve25519 public key for key agreement from a collection of bytes. - Parameters: - rawRepresentation: A raw representation of the key as a collection of contiguous bytes.
hpkeRepresentation(kem: HPKE_KEM): ArrayBufferSwift declarationfunc hpkeRepresentation(kem: HPKE.KEM) throws -> DataCreates a serialized representation of the public key. - Parameters: - kem: The Key Encapsulation Mechanism to use with the public key. - Throws: ``CryptoKit/HPKE/Errors/inconsistentCiphersuiteAndKey`` if the key encapsulation mechanism requested is incompatible with this public key. - Returns: The serialized representation of the public key.
static initKem(serialization: ArrayBuffer, kem: HPKE_KEM): Curve25519_KeyAgreement_PublicKeySwift declarationinit<D>(_ serialization: D, kem: HPKE.KEM) throws where D : ContiguousBytesCreates a Curve25519 elliptic curve public key for use with Diffie-Hellman key exchange. - Parameters: - serialization: The serialized bytes of the public key. - kem: The key encapsulation mechanism to use with the public key. - Throws: ``CryptoKit/HPKE/Errors/inconsistentCiphersuiteAndKey`` if the key encapsulation mechanism requested is incompatible with this public key.
No declarations were skipped in this snapshot.