One Logo Pool Ball
CryptoKit · IOS API REFERENCE

Curve25519.Signing.PublicKey

struct · iOS 13.0+ · SDK 27.1

struct PublicKey

A Curve25519 public key used to verify cryptographic signatures.

Members (3)

method · iOS 13.0+

isValidSignature

TypeScript
isValidSignature(signature: ArrayBuffer, data: ArrayBuffer): boolean
Swift declaration
func isValidSignature<S, D>(_ signature: S, for data: D) -> Bool where S : DataProtocol, D : DataProtocol

Verifies an EdDSA signature over Curve25519. - Parameters: - signature: The signature to check against the given data. - data: The data covered by the signature. - Returns: A Boolean value that’s `true` when the signature is valid for the given data.

get · iOS 13.0+

rawRepresentation

TypeScript
get rawRepresentation(): ArrayBuffer
Swift declaration
var rawRepresentation: Data { get }

A representation of the public key.

init · iOS 13.0+

init

TypeScript
static init(rawRepresentation: ArrayBuffer): Curve25519_Signing_PublicKey
Swift declaration
init<D>(rawRepresentation: D) throws where D : ContiguousBytes

Creates a Curve25519 public key from a data representation. - Parameters: - rawRepresentation: A representation of the key as contiguous bytes from which to create the key.

Skipped declarations

No declarations were skipped in this snapshot.

All CryptoKit types →