PrivateKey

An ECDH private key that provides shared secret computation via sharedSecretGenerator.

Functions

Link copied to clipboard

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard

Encodes this material into a ByteString in the specified format.

Link copied to clipboard

Encodes this material into a ByteString in the specified format.

Link copied to clipboard
open suspend fun getPublicKey(): ECDH.PublicKey

Returns the associated public key.

Link copied to clipboard

Returns the associated public key.

Link copied to clipboard

Returns a SharedSecretGenerator that computes a shared secret given the other party's PublicKey.