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