Update src/crypto/public_key/elliptic/ecdh.js

Co-Authored-By: wussler <aron@wussler.it>
This commit is contained in:
Daniel Huigens 2019-01-18 16:40:22 +01:00 committed by GitHub
parent f77ebc7605
commit 680aa03bcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ async function genPublicEphemeralKey(oid, cipher_algo, hash_algo, Q, fingerprint
* @async
*/
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());
return {
V: key.V,