Update src/crypto/public_key/elliptic/ecdh.js
Co-Authored-By: wussler <aron@wussler.it>
This commit is contained in:
parent
f77ebc7605
commit
680aa03bcd
|
@ -96,7 +96,7 @@ async function genPublicEphemeralKey(oid, cipher_algo, hash_algo, Q, fingerprint
|
||||||
* @async
|
* @async
|
||||||
*/
|
*/
|
||||||
async function encrypt(oid, cipher_algo, hash_algo, m, Q, fingerprint) {
|
async function encrypt(oid, cipher_algo, hash_algo, m, Q, fingerprint) {
|
||||||
const key = await genPublicEphemeralKey(oid, cipher_algo, hash_algo, Q, fingerprint);
|
const { V, Z } = await genPublicEphemeralKey(oid, cipher_algo, hash_algo, Q, fingerprint);
|
||||||
const C = aes_kw.wrap(key.Z, m.toString());
|
const C = aes_kw.wrap(key.Z, m.toString());
|
||||||
return {
|
return {
|
||||||
V: key.V,
|
V: key.V,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user