mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-11 01:34:12 +08:00
Code cleanup
This commit is contained in:
parent
085e4cc7f3
commit
c52cf5ee75
1 changed files with 0 additions and 14 deletions
|
@ -22,8 +22,6 @@ angular.module('passmanApp')
|
|||
});
|
||||
},
|
||||
generateRSAKeys: function(key_length, progress, callback){
|
||||
// return forge.pki.rsa.generateKeyPair(key_length);
|
||||
|
||||
var state = forge.pki.rsa.createKeyPairGenerationState(key_length, 0x10001);
|
||||
var step = function() {
|
||||
// run for 100 ms
|
||||
|
@ -35,18 +33,6 @@ angular.module('passmanApp')
|
|||
else {
|
||||
progress(0);
|
||||
}
|
||||
|
||||
// console.log({
|
||||
// // 'data_length': state.n.data.length,
|
||||
// 'bits' : state.bits,
|
||||
// 'num' : state.num,
|
||||
// 'numBitLength' : state.num !== null ? state.num.bitLength() : null,
|
||||
// 'pBitLength' : state.p !== null ? state.p.bitLength() : null,
|
||||
// 'qBitLength' : state.q !== null ? state.q.bitLength() : null,
|
||||
// 'pqState' : state.pqState,
|
||||
// 'pBits': state.pBits,
|
||||
// 'qBits': state.qBits
|
||||
// });
|
||||
setTimeout(step, 1);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue