-
Undocumented
Declaration
Swift
public init<D>(rawRepresentation: D) throws where D : ContiguousBytes
-
Undocumented
Declaration
Swift
public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : ContiguousBytes
-
Undocumented
Declaration
Swift
public init<Bytes>(x963Representation: 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
Declaration
Swift
public var compactRepresentation: Data? { get }
-
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 }
-
Verifies an ECDSA signature over the P384 elliptic curve.
Declaration
Swift
public func isValidSignature<D>(_ signature: P384.Signing.ECDSASignature, for digest: D) -> Bool where D : Digest
Parameters
signature
The signature to verify
digest
The digest that was signed.
Return Value
True if the signature is valid, false otherwise.
-
Verifies an ECDSA signature over the P384 elliptic curve. SHA384 is used as the hash function.
Declaration
Swift
public func isValidSignature<D>(_ signature: P384.Signing.ECDSASignature, for data: D) -> Bool where D : DataProtocol
Parameters
signature
The signature to verify
data
The data that was signed.
Return Value
True if the signature is valid, false otherwise.