diff --git a/src/crypto/public_key/elliptic/ecdh.js b/src/crypto/public_key/elliptic/ecdh.js index 66ee9598..d44f1232 100644 --- a/src/crypto/public_key/elliptic/ecdh.js +++ b/src/crypto/public_key/elliptic/ecdh.js @@ -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 };