-
Undocumented
Declaration
Swift
public init(compactRepresentable: Bool = true)
-
Undocumented
Declaration
Swift
public init<Bytes>(x963Representation: Bytes) throws where Bytes : ContiguousBytes
-
Undocumented
Declaration
Swift
public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : ContiguousBytes
-
Undocumented
Declaration
Swift
public init(pemRepresentation: String) throws
-
Undocumented
Declaration
Swift
public init<Bytes>(derRepresentation: Bytes) throws where Bytes : RandomAccessCollection, Bytes.Element == UInt8
-
Undocumented
-
Undocumented
Declaration
Swift
public var rawRepresentation: Data { get }
-
Undocumented
Declaration
Swift
public var x963Representation: Data { get }
-
Undocumented
Declaration
Swift
public var derRepresentation: Data { get }
-
Undocumented
Declaration
Swift
public var pemRepresentation: String { get }
-
Generates an ECDSA signature over the P521 elliptic curve.
Throws
If there is a failure producing the signatureDeclaration
Swift
public func signature<D>(for digest: D) throws -> P521.Signing.ECDSASignature where D : Digest
Parameters
digest
The digest to sign.
Return Value
The ECDSA Signature.
-
Generates an ECDSA signature over the P521 elliptic curve. SHA512 is used as the hash function.
Throws
If there is a failure producing the signature.Declaration
Swift
public func signature<D>(for data: D) throws -> P521.Signing.ECDSASignature where D : DataProtocol
Parameters
data
The data to sign.
Return Value
The ECDSA Signature.