1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-25 10:22:18 -05:00

refactored forge test

This commit is contained in:
Tankred Hase 2013-05-14 14:49:07 +02:00
parent d59077dedd
commit ec14639d56

View File

@ -76,7 +76,10 @@ test("RSA Decrypt", 1, function() {
}); });
test("RSA Sign", 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); ok(rsa_test.sig);
}); });