mirror of
https://github.com/moparisthebest/mail
synced 2024-12-22 07:18:49 -05:00
test cleanup
This commit is contained in:
parent
184b9a6d3b
commit
7d14dbfa23
@ -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();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user