Crypt_RSA D

Total Complexity 410
Dependencies 5
Dependents 4
Total lines 3,147
Lines of code 1,809
Logical lines of code 1,239
Comment lines 960
Methods 61
Properties 24

Methods 61

Method Rating Maintainability Complexity Lines of code
_parseKey()
D
2
117 477
_convertPrivateKey()
D
21
26 257
loadKey()
C
32 24 102
createKey()
C
30 21 121
__construct()
B
40 17 54
_exponentiate()
A
41 12 58
setPublicKey()
A
48 10 35
_emsa_pkcs1_v1_5_encode()
A
48 9 34
_start_element_handler()
A
51 9 28
_rsassa_pkcs1_v1_5_verify()
A
52 9 25
encrypt()
A
49 8 33
_rsaes_oaep_decrypt()
A
46 7 37
_emsa_pkcs1_v1_5_encode_without_null()
A
49 7 31
_emsa_pss_verify()
S
49 7 28
_convertPublicKey()
S
43 5 50
setHash()
S
58 7 17
setMGFHash()
S
59 7 15
decrypt()
S
51 6 26
_rsaes_pkcs1_v1_5_encrypt()
S
51 6 24
_rsaes_pkcs1_v1_5_decrypt()
S
52 6 24
getPublicKeyFingerprint()
S
55 5 18
_rsassa_pss_verify()
S
56 4 19
_equals()
S
59 4 14
setPrivateKey()
S
61 4 13
verify()
S
63 4 11
sign()
S
63 4 11
_emsa_pss_encode()
S
54 3 19
_rsaes_oaep_encrypt()
S
54 2 20
_generateMinMax()
S
57 2 16
_rsavp1()
S
68 3 7
_rsasp1()
S
68 3 7
_rsadp()
S
68 3 7
_rsaep()
S
68 3 7
_extractBER()
S
66 3 7
__toString()
S
67 3 8
_data_handler()
S
70 3 6
_getPrivatePublicKey()
S
64 3 10
getPublicKey()
S
64 3 10
_rsassa_pkcs1_v1_5_sign()
S
63 2 11
_stop_element_handler()
S
71 2 6
_mgf1()
S
64 2 9
getSize()
S
78 2 3
_encodeLength()
S
67 2 7
_decodeLength()
S
64 2 9
_i2osp()
S
66 2 8
getPrivateKey()
S
64 2 10
setPassword()
S
82 1 3
setComment()
S
82 1 3
setSignatureMode()
S
82 1 3
setEncryptionMode()
S
82 1 3
getComment()
S
83 1 3
_blind()
S
66 1 8
Crypt_RSA()
S
83 1 3
_rsassa_pss_sign()
S
68 1 7
__clone()
S
74 1 5
_string_shift()
S
73 1 5
_raw_encrypt()
S
73 1 5
setPrivateKeyFormat()
S
82 1 3
setPublicKeyFormat()
S
82 1 3
setSaltLength()
S
82 1 3
_os2ip()
S
80 1 3