Initializerswift-crypto 3.8.0Crypto
init(compressedRepresentation:)
Creates a P-384 public key for signing from a compressed representation of the key.
ECDH.swift:505init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : ContiguousBytes
Parameters
- compressedRepresentation
A compressed representation of the key as a collection of contiguous bytes.
Other members in extension
Type members
init<Bytes>(compactRepresentation: Bytes
) throws Creates a P-384 public key for signing from a compact representation of the key.
init<Bytes>(derRepresentation: Bytes
) throws Creates a P-384 public key for signing from a Distinguished Encoding Rules (DER) encoded representation.
init(pemRepresentation: String
) throws Creates a P-384 public key for signing from a Privacy-Enhanced Mail (PEM) representation.
init<D>(rawRepresentation: D
) throws Creates a P-384 public key for signing from a collection of bytes.
init<Bytes>(x963Representation: Bytes
) throws Creates a P-384 public key for signing from an ANSI x9.63 representation.
Instance members
var compactRepresentation: Data?
A compact representation of the public key.
var compressedRepresentation: Data
A compressed representation of the public key.
var derRepresentation: Data
A Distinguished Encoding Rules (DER) encoded representation of the public key.
var pemRepresentation: String
A Privacy-Enhanced Mail (PEM) representation of the public key.
var rawRepresentation: Data
A full representation of the public key.
var x963Representation: Data
An ANSI x9.63 representation of the public key.
func isValidSignature<D>(P384.Signing.ECDSASignature, for: D
) -> Bool Verifies an elliptic curve digital signature algorithm (ECDSA) signature on a block of data over the P-384 elliptic curve.
func isValidSignature<D>(P384.Signing.ECDSASignature, for: D
) -> Bool Verifies an elliptic curve digital signature algorithm (ECDSA) signature on a digest over the P-384 elliptic curve.