get rid of pubkey warnings
This commit is contained in:
parent
3cee372d5c
commit
8e32879795
|
@ -71,6 +71,9 @@ const DHDecrypt64 = async (symmetricKey, cipherText64) => {
|
|||
}
|
||||
|
||||
function makeSymmetricKey(privKey, pubKey) {
|
||||
if (pubKey.byteLength === 32) {
|
||||
pubKey = Buffer.concat([Buffer.from('05', 'hex'), pubKey])
|
||||
}
|
||||
const keyAgreement = libsignal.curve.calculateAgreement(
|
||||
pubKey,
|
||||
privKey,
|
||||
|
|
|
@ -71,6 +71,9 @@ const DHDecrypt64 = async (symmetricKey, cipherText64) => {
|
|||
}
|
||||
|
||||
function makeSymmetricKey(privKey, pubKey) {
|
||||
if (pubKey.byteLength === 32) {
|
||||
pubKey = Buffer.concat([Buffer.from('05', 'hex'), pubKey])
|
||||
}
|
||||
const keyAgreement = libsignal.curve.calculateAgreement(
|
||||
pubKey,
|
||||
privKey,
|
||||
|
|
Loading…
Reference in New Issue