Initializerswift-crypto 3.8.0Crypto
init(derRepresentation:)
Creates a P-521 digital signature from a Distinguished Encoding Rules (DER) encoded representation.
ECDSA.swift:404init<D>(derRepresentation: D) throws where D : DataProtocol
Parameters
- derRepresentation
The DER-encoded representation of the signature.
Other members in extension
Type members
init<D>(rawRepresentation: D
) throws Creates a P-521 digital signature from a raw representation.
Instance members
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) throws -> R
) rethrows -> R Invokes the given closure with a buffer pointer covering the raw bytes of the signature.