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