-
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
Declaration
Swift
public var publicKey: P384.KeyAgreement.PublicKey { 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 }
-
Performs a key agreement with provided public key share.
Throws
An error occurred while computing the shared secretDeclaration
Swift
public func sharedSecretFromKeyAgreement(with publicKeyShare: P384.KeyAgreement.PublicKey) throws -> SharedSecret
Parameters
publicKeyShare
The public key to perform the ECDH with.
Return Value
Returns a shared secret