diff options
Diffstat (limited to 'www')
-rw-r--r-- | www/keygenIE.js | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/www/keygenIE.js b/www/keygenIE.js index e6dd911..50faf76 100644 --- a/www/keygenIE.js +++ b/www/keygenIE.js @@ -128,11 +128,14 @@ var CAcert_keygen_IE = function () { var alg = getAlgorithm(); var bits = parseInt(keySize.value, 10); - if ( bits < alg.MinLength || bits > alg.MaxLength || - (alg.IncrementLength && - (bits - alg.MinLength) % alg.IncrementLength !== 0) + if ( + (bits < alg.MinLength) || + (bits > alg.MaxLength) || + ( + alg.IncrementLength && + ((bits - alg.MinLength) % alg.IncrementLength !== 0) ) - { + ) { return false; } @@ -434,12 +437,14 @@ var CAcert_keygen_IE = function () { /// Get the selected key size var getKeySize = function () { var bits = parseInt(keySize.value, 10); - if ( bits < getMinSigKeyLength() || bits > getMaxSigKeyLength() || - (getStepSigKeyLength() && - (bits - getMinSigKeyLength()) % - getStepSigKeyLength() !== 0) + if ( + (bits < getMinSigKeyLength()) || + (bits > getMaxSigKeyLength()) || + ( + getStepSigKeyLength() && + ((bits - getMinSigKeyLength()) % getStepSigKeyLength() !== 0) ) - { + ) { return false; } |