From 8ff6c15ee398d6c403db34c6439448ab6d54922c Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Wed, 20 Jan 2016 18:48:22 +0500 Subject: [PATCH] lib: pass pers to drbg from ec.sign --- lib/elliptic/ec/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/elliptic/ec/index.js b/lib/elliptic/ec/index.js index 592335d..887e170 100644 --- a/lib/elliptic/ec/index.js +++ b/lib/elliptic/ec/index.js @@ -105,7 +105,8 @@ EC.prototype.sign = function sign(msg, key, enc, options) { var drbg = new elliptic.hmacDRBG({ hash: this.hash, entropy: bkey, - nonce: nonce + nonce: nonce, + pers: options.pers }); // Number of bytes to generate