Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! export EVP_PKEY_POLY1305
  • Loading branch information
bnoordhuis committed Mar 24, 2020
commit 2ecf680c66104c8218241695c02ab4ec682c18fa
3 changes: 2 additions & 1 deletion lib/internal/crypto/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const {
} = primordials;

const {
EVP_PKEY_POLY1305,
KeyObject: KeyObjectHandle,
kKeyTypeSecret,
kKeyTypePublic,
Expand Down Expand Up @@ -337,7 +338,7 @@ function createPrivateKey(key, secret = null) {
secret);
}
const handle = new KeyObjectHandle(kKeyTypePrivate);
handle.initRaw(/* NID_poly1305 */ 1061, secret);
handle.initRaw(EVP_PKEY_POLY1305, secret);
return new PrivateKeyObject(handle);
}
const { format, type, data, passphrase } =
Expand Down
1 change: 1 addition & 0 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6914,6 +6914,7 @@ void Initialize(Local<Object> target,
env->SetMethod(target, "generateKeyPairDH", GenerateKeyPairDH);
NODE_DEFINE_CONSTANT(target, EVP_PKEY_ED25519);
NODE_DEFINE_CONSTANT(target, EVP_PKEY_ED448);
NODE_DEFINE_CONSTANT(target, EVP_PKEY_POLY1305);
NODE_DEFINE_CONSTANT(target, EVP_PKEY_X25519);
NODE_DEFINE_CONSTANT(target, EVP_PKEY_X448);
NODE_DEFINE_CONSTANT(target, OPENSSL_EC_NAMED_CURVE);
Expand Down