Structure

P521.Signing.ECDSASignature

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

Declaration

struct ECDSASignature

Topics

Representing the Signature

var derRepresentation: Data

A distinguished encoding rules (DER) encoded representation of a P-521 digital signature.

var rawRepresentation: Data

A raw data representation of a P-521 digital signature.

func withUnsafeBytes<R>((UnsafeRawBufferPointer) -> R) -> R

Invokes the given closure with a buffer pointer covering the raw bytes of the signature.

Relationships

Conforms To

See Also

Creating a Signature

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

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

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

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