Initializerswift-crypto 3.8.0Crypto
init(derRepresentation:)
Creates a P-384 digital signature from a Distinguished Encoding Rules (DER) encoded representation.
ECDSA.swift:241init<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-384 digital signature from a raw representation.
Instance members
var derRepresentation: Data
A Distinguished Encoding Rules (DER) encoded representation of a P-384 digital signature.
var rawRepresentation: Data
A raw data representation of a P-384 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.