Instance Propertyswift-crypto 3.8.0Crypto
rawRepresentation
A data representation of the private key.
ECDH.swift:866var rawRepresentation: Data { get }
Other members in extension
Type members
init(
) Creates a NIST P-384 elliptic curve private key for use with Diffie-Hellman key exchange.
init(compactRepresentable: Bool
) Creates a random P-384 private key for key agreement.
init<Bytes>(derRepresentation: Bytes
) throws Creates a P-384 private key for key agreement from a Distinguished Encoding Rules (DER) encoded representation.
init(pemRepresentation: String
) throws Creates a P-384 private key for key agreement from a Privacy-Enhanced Mail PEM) representation.
init<Bytes>(rawRepresentation: Bytes
) throws Creates a P-384 private key for key agreement from a collection of bytes.
init<Bytes>(x963Representation: Bytes
) throws Creates a P-384 private key for key agreement from an ANSI x9.63 representation.
Instance members
var derRepresentation: Data
A Distinguished Encoding Rules (DER) encoded representation of the private key.
var pemRepresentation: String
A Privacy-Enhanced Mail (PEM) representation of the private key.
var publicKey: P384.KeyAgreement.PublicKey
The corresponding public key.
var x963Representation: Data
An ANSI x9.63 representation of the private key.