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:31 +01:00
committed by GitHub
parent 680aa03bcd
commit 31f72fb64d

View File

@@ -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
};