diff options
Diffstat (limited to 'libtommath/bn_mp_dr_is_modulus.c')
-rw-r--r-- | libtommath/bn_mp_dr_is_modulus.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libtommath/bn_mp_dr_is_modulus.c b/libtommath/bn_mp_dr_is_modulus.c index 5237344..c8704b9 100644 --- a/libtommath/bn_mp_dr_is_modulus.c +++ b/libtommath/bn_mp_dr_is_modulus.c @@ -16,24 +16,24 @@ */ /* determines if a number is a valid DR modulus */ -int mp_dr_is_modulus(mp_int *a) +int mp_dr_is_modulus(mp_int * a) { - int ix; + int ix; - /* must be at least two digits */ - if (a->used < 2) { - return 0; - } + /* must be at least two digits */ + if (a->used < 2) { + return 0; + } - /* must be of the form b**k - a [a <= b] so all - * but the first digit must be equal to -1 (mod b). - */ - for (ix = 1; ix < a->used; ix++) { - if (a->dp[ix] != MP_MASK) { - return 0; - } - } - return 1; + /* must be of the form b**k - a [a <= b] so all + * but the first digit must be equal to -1 (mod b). + */ + for (ix = 1; ix < a->used; ix++) { + if (a->dp[ix] != MP_MASK) { + return 0; + } + } + return 1; } #endif |