From ec14639d567e749e93b8096c765099937640858c Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Tue, 14 May 2013 14:49:07 +0200 Subject: [PATCH] refactored forge test --- test/unit/forge-test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/unit/forge-test.js b/test/unit/forge-test.js index 6077217..60c3e34 100644 --- a/test/unit/forge-test.js +++ b/test/unit/forge-test.js @@ -76,7 +76,10 @@ test("RSA Decrypt", 1, function() { }); test("RSA Sign", 1, function() { - rsa_test.sig = rsa_test.keypair.privateKey.sign(rsa_test.md); + var sha = forge.md.sha256.create(); + sha.update(forge_aes_test.test_message); + + rsa_test.sig = rsa_test.keypair.privateKey.sign(sha); ok(rsa_test.sig); });