Structure

SecureEnclave.P256.Signing.PrivateKey

No overview available.

Declaration

struct SecureEnclave.P256.Signing.PrivateKey

Topics

Creating a Private Key

init(dataRepresentation: Data)

Creates a P-256 private key for signing from a data representation of the key.

init(dataRepresentation: Data, authenticationContext: LAContext?)

Creates a P-256 private key for signing from a data representation of the key with the given authentication context.

Representing the Key

let dataRepresentation: Data

A data representation of the private key.

Finding the Public Key

let publicKey: P256.Signing.PublicKey

The corresponding public key.

Creating a Signature

func signature<D>(for: D) -> P256.Signing.ECDSASignature

Generates an elliptic curve digital signature algorithm (ECDSA) signature of the given data over the P-256 elliptic curve, using SHA-256 as a hash function.

func signature<D>(for: D) -> P256.Signing.ECDSASignature

Generates an elliptic curve digital signature algorithm (ECDSA) signature of the given digest over the P-256 elliptic curve, using SHA-256 as a hash function.

struct P256.Signing.ECDSASignature

A P-256 elliptic curve digital signature algorithm (ECDSA) signature.