One Logo Pool Ball
CryptoKit · IOS API REFERENCE

P521.Signing.ECDSASignature

struct · iOS 13.0+ · SDK 27.1

struct ECDSASignature

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

Members (6)

method · iOS 13.0+

withUnsafeBytes

TypeScript
withUnsafeBytes(body: ((arg0: ArrayBuffer) => unknown)): unknown
Swift declaration
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R

Calls the given closure with the contents of underlying storage. - note: Calling `withUnsafeBytes` multiple times does not guarantee that the same buffer pointer will be passed in every time. - warning: The buffer argument to the body should not be stored or used outside of the lifetime of the call to the closure. Clients should prefer the `withBytes` function to this one, because `withBytes` uses the non-escapable type `RawSpan` to ensure that the buffer argument is not stored outside of the closure.

get · iOS 13.0+

derRepresentation

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

A Distinguished Encoding Rules (DER) encoded representation of a P-521 digital signature.

init · iOS 13.0+

init

TypeScript
static initDerRepresentation(derRepresentation: ArrayBuffer): P521_Signing_ECDSASignature
Swift declaration
init<D>(derRepresentation: D) throws where D : DataProtocol

Creates a P-521 digital signature from a Distinguished Encoding Rules (DER) encoded representation. - Parameters: - derRepresentation: The DER-encoded representation of the signature.

get · iOS 13.0+

rawRepresentation

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

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

set · iOS 13.0+

rawRepresentation

TypeScript
set rawRepresentation(value: ArrayBuffer)
Swift declaration
var rawRepresentation: Data

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

init · iOS 13.0+

init

TypeScript
static initRawRepresentation(rawRepresentation: ArrayBuffer): P521_Signing_ECDSASignature
Swift declaration
init<D>(rawRepresentation: D) throws where D : DataProtocol

Creates a P-521 digital signature from a raw representation. - Parameters: - rawRepresentation: A raw representation of the signature as a collection of contiguous bytes.

Skipped declarations

No declarations were skipped in this snapshot.

All CryptoKit types →