summaryrefslogtreecommitdiff
path: root/www/keygenIE.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/keygenIE.js')
-rw-r--r--www/keygenIE.js23
1 files changed, 14 insertions, 9 deletions
diff --git a/www/keygenIE.js b/www/keygenIE.js
index 3a63f9b..be2d184 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;
}
@@ -438,12 +441,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;
}