SharedKey.createclass method

Generates a new instance of SharedKey, algorithmically deriving a new key from its arguments.

SharedKeycreatepublic-key, private-keyshared-key

SharedKeycreateprivate-key, public-keyshared-key

SharedKeycreatekey-pairshared-key

nametypedescription

public-key

PublicKey

PublicKey suitable for encryption.

private-key

PrivateKey

PrivateKey suitable for encryption.

key-pair

EncryptionKeyPair

An EncryptionKeyPair, containing one PublicKey and one PrivateKey suitable for encryption.

shared-key

SharedKey

Instance of SharedKey, derived from either the public-key and private-key or from the key-pair.