Naming
This commit is contained in:
parent
4c809a4846
commit
1face482ba
|
@ -76,10 +76,9 @@ async function genPublicEphemeralKey(oid, cipher_algo, hash_algo, Q, fingerprint
|
||||||
const v = await curve.genKeyPair();
|
const v = await curve.genKeyPair();
|
||||||
Q = curve.keyFromPublic(Q);
|
Q = curve.keyFromPublic(Q);
|
||||||
const S = v.derive(Q);
|
const S = v.derive(Q);
|
||||||
return {
|
const V = new BN(v.getPublic());
|
||||||
V: new BN(v.getPublic()),
|
const Z = await kdf(hash_algo, S, cipher[cipher_algo].keySize, param);
|
||||||
Z: await kdf(hash_algo, S, cipher[cipher_algo].keySize, param)
|
return { V, Z };
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user