Use curve functions from native module

This commit is contained in:
Scott Nonnenberg 2019-08-19 15:26:45 -07:00
parent e29eee4583
commit d3d2b0ec52
20 changed files with 623 additions and 74127 deletions

View file

@ -299,13 +299,16 @@ describe('SecretSessionCipher', () => {
try {
await bobCipher.decrypt(
createCertificateValidator(trustRoot.puKey),
createCertificateValidator(trustRoot.pubKey),
ciphertext,
31335
);
throw new Error('It did not fail!');
} catch (error) {
assert.strictEqual(error.message, 'Invalid public key');
assert.strictEqual(
error.message,
"Sender's certificate key does not match key used in message"
);
}
});