1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-21 23:08:50 -05:00

test cleanup

This commit is contained in:
Tankred Hase 2013-05-14 00:35:25 +02:00
parent 184b9a6d3b
commit 7d14dbfa23

View File

@ -7,18 +7,14 @@ var rsa_test = {
asyncTest("Generate RSA Keypair", 1, function() {
forge.pki.rsa.generateKeyPair({
forge.rsa.generateKeyPair({
bits: rsa_test.keySize,
workerScript: app.config.workerPath + '/../lib/forge/prime.worker.js'
}, function(err, keypair) {
ok(!err && keypair);
console.log(keypair);
rsa_test.keypair = keypair;
var pkPem = forge.pki.publicKeyToPem(keypair.publicKey);
var pk = forge.pki.publicKeyFromPem(pkPem);
start();
});