Math_BigInteger D

Total Complexity 444
Dependencies 0
Dependents 6
Total lines 3,438
Lines of code 1,825
Logical lines of code 1,334
Comment lines 1,114
Methods 69
Properties 6

Methods 69

Method Rating Maintainability Complexity Lines of code
Math_BigInteger()
D
24
50 154
isPrime()
D
25
41 117
divide()
C
30 23 128
toBytes()
B
39 23 58
modPow()
B
32 19 100
randomPrime()
B
39 20 66
extendedGCD()
B
35 18 86
_subtract()
A
41 15 60
_add()
A
41 13 60
_multiplyLower()
A
46 10 42
_slidingWindow()
A
44 10 42
_compare()
A
55 10 18
toString()
A
49 9 31
random()
A
46 8 37
_normalize()
A
50 8 29
modInverse()
A
51 8 25
_barrett()
A
42 6 55
_regularMultiply()
A
49 7 32
bitwise_leftRotate()
S
49 7 29
toBits()
S
56 7 15
_regularBarrett()
S
45 5 43
_reduce()
S
53 6 24
_base256_rshift()
S
52 5 24
_lshift()
S
55 5 20
_montgomeryMultiply()
S
49 4 31
_montgomery()
S
51 4 25
bitwise_or()
S
52 4 23
bitwise_xor()
S
52 4 23
bitwise_and()
S
53 4 22
bitwise_leftShift()
S
55 4 19
bitwise_rightShift()
S
55 4 19
_rshift()
S
55 4 19
_baseSquare()
S
55 4 19
_multiply()
S
57 4 16
_base256_lshift()
S
57 4 15
_make_odd()
S
59 4 14
abs()
S
59 4 14
bitwise_not()
S
54 3 19
multiply()
S
57 3 17
add()
S
57 3 17
subtract()
S
57 3 17
__sleep()
S
63 3 11
_karatsuba()
S
53 2 22
_karatsubaSquare()
S
55 2 19
compare()
S
65 3 9
equals()
S
66 3 8
_trim()
S
65 3 9
_array_repeat()
S
78 2 3
__wakeup()
S
65 2 9
_encodeASN1Length()
S
67 2 7
_prepareReduce()
S
70 2 6
_divide_digit()
S
63 2 10
_multiplyReduce()
S
67 2 7
_squareReduce()
S
70 2 6
_square()
S
72 2 5
setPrecision()
S
62 2 10
_bytes2int()
S
73 1 4
_int2bytes()
S
78 1 3
toHex()
S
80 1 3
_mod2()
S
73 1 5
__toString()
S
82 1 3
copy()
S
66 1 9
__clone()
S
82 1 3
_prepMontgomery()
S
66 1 8
_modInverse67108864()
S
64 1 9
setRandomGenerator()
S
82 1 3
bitwise_rightRotate()
S
80 1 3
gcd()
S
77 1 4
powMod()
S
80 1 3