Crypt_RSA D

Total Complexity 345
Dependencies 5
Dependents 6
Total lines 2,851
Lines of code 1,467
Logical lines of code 1,033
Comment lines 990
Methods 57
Properties 24

Methods 57

Method Rating Maintainability Complexity Lines of code
_parseKey()
D
10
84 334
_convertPrivateKey()
C
25
23 164
loadKey()
C
33 24 93
createKey()
C
30 21 120
__construct()
A
42 14 48
_exponentiate()
A
43 9 52
setPublicKey()
A
48 10 35
_emsa_pkcs1_v1_5_encode()
A
47 9 34
_start_element_handler()
A
51 9 28
_emsa_pss_verify()
S
49 7 28
_rsaes_oaep_decrypt()
S
48 6 33
setHash()
S
58 7 17
setMGFHash()
S
59 7 15
_convertPublicKey()
S
45 5 43
encrypt()
S
52 6 26
_rsaes_pkcs1_v1_5_decrypt()
S
52 6 24
_rsaes_pkcs1_v1_5_encrypt()
S
51 6 24
decrypt()
S
53 5 23
_rsassa_pkcs1_v1_5_verify()
S
54 5 23
_rsassa_pss_verify()
S
56 4 19
setPrivateKey()
S
60 4 13
sign()
S
63 4 11
verify()
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
_rsaep()
S
68 3 7
_rsasp1()
S
68 3 7
_rsadp()
S
68 3 7
_extractBER()
S
66 3 7
_equals()
S
63 3 10
__toString()
S
67 3 8
_data_handler()
S
70 3 6
getPublicKey()
S
64 3 10
_getPrivatePublicKey()
S
64 3 10
_rsassa_pkcs1_v1_5_sign()
S
63 2 11
getPrivateKey()
S
64 2 10
getSize()
S
78 2 3
_stop_element_handler()
S
70 2 6
_i2osp()
S
66 2 8
_mgf1()
S
64 2 9
_encodeLength()
S
67 2 7
_decodeLength()
S
64 2 9
setPublicKeyFormat()
S
81 1 3
_rsassa_pss_sign()
S
67 1 7
_blind()
S
66 1 8
__clone()
S
74 1 5
setPrivateKeyFormat()
S
81 1 3
setSaltLength()
S
81 1 3
setEncryptionMode()
S
81 1 3
setSignatureMode()
S
81 1 3
setComment()
S
81 1 3
getComment()
S
82 1 3
setPassword()
S
81 1 3
_string_shift()
S
72 1 5
_os2ip()
S
79 1 3