Skip to main content

KeyManager.keyManagerSharedSecret() method

Compute a shared secret with the public key of another party.

This computes the raw shared secret (the result of a Diffie-Hellman computation) To use this for symmetric encryption you MUST apply a KDF on the result.

Signature:

keyManagerSharedSecret(args: IKeyManagerSharedSecretArgs): Promise<string>;

Parameters

ParameterTypeDescription
argsIKeyManagerSharedSecretArgsThe input to compute the shared secret, including the local key reference and remote key details.

Returns:

Promise<string>

a Promise that resolves to a hex encoded shared secret