ParagonIE_Sodium_Compat D

Total Complexity 430
Dependencies 16
Dependents 101
Total lines 3,533
Lines of code 1,824
Logical lines of code 1,012
Comment lines 1,238
Methods 101
Properties 2

Methods 101

Method Rating Maintainability Complexity Lines of code
pad()
A
40 9 66
crypto_kx()
A
44 9 51
base642bin()
A
50 9 29
crypto_aead_xchacha20poly1305_ietf_decrypt()
A
47 8 39
crypto_aead_chacha20poly1305_decrypt()
A
46 7 46
crypto_aead_chacha20poly1305_ietf_decrypt()
A
46 7 46
crypto_scalarmult()
A
51 8 26
crypto_generichash()
A
51 8 26
crypto_generichash_init()
A
51 8 25
unpad()
A
46 7 39
crypto_aead_xchacha20poly1305_ietf_encrypt()
A
48 7 36
crypto_generichash_final()
S
50 7 30
crypto_aead_chacha20poly1305_encrypt()
S
47 6 43
crypto_aead_chacha20poly1305_ietf_encrypt()
S
47 6 43
crypto_box_open()
S
52 7 24
crypto_kdf_derive_from_key()
S
49 6 33
crypto_aead_aes256gcm_decrypt()
S
49 6 32
crypto_sign_verify_detached()
S
52 6 26
crypto_stream()
S
54 6 21
crypto_secretbox()
S
54 6 21
crypto_secretbox_open()
S
54 6 21
crypto_auth_verify()
S
54 6 21
crypto_box()
S
54 6 21
crypto_stream_xor()
S
54 6 21
crypto_sign_open()
S
54 6 20
crypto_box_keypair_from_secretkey_and_publickey()
S
54 6 20
bin2base64()
S
55 6 19
crypto_scalarmult_base()
S
55 6 19
crypto_sign_ed25519_pk_to_curve25519()
S
56 6 18
use_fallback()
S
58 6 16
crypto_aead_aes256gcm_is_available()
S
58 6 15
crypto_aead_aes256gcm_encrypt()
S
50 5 29
crypto_sign_ed25519_sk_to_curve25519()
S
53 5 22
crypto_generichash_init_salt_personal()
S
54 5 20
crypto_sign_detached()
S
56 5 17
crypto_shorthash()
S
56 5 17
crypto_box_seal()
S
56 5 17
crypto_auth()
S
56 5 17
crypto_box_seal_open()
S
56 5 17
crypto_sign()
S
56 5 17
crypto_sign_publickey()
S
57 5 16
crypto_sign_publickey_from_secretkey()
S
57 5 16
crypto_sign_secretkey()
S
57 5 16
crypto_box_secretkey()
S
57 5 16
crypto_box_publickey_from_secretkey()
S
57 5 16
crypto_box_publickey()
S
57 5 16
increment()
S
53 4 23
crypto_pwhash()
S
54 4 20
memzero()
S
57 4 18
crypto_generichash_update()
S
57 4 18
crypto_sign_seed_keypair()
S
57 4 17
crypto_sign_keypair_from_secretkey_and_publickey()
S
58 4 16
crypto_kx_server_session_keys()
S
50 3 31
crypto_kx_client_session_keys()
S
50 3 31
randombytes_buf()
S
59 4 15
randombytes_uniform()
S
58 4 15
crypto_secretbox_xchacha20poly1305()
S
58 4 15
crypto_secretbox_xchacha20poly1305_open()
S
58 4 15
crypto_pwhash_scryptsalsa208sha256()
S
51 3 29
crypto_box_seed_keypair()
S
60 4 13
crypto_box_keypair()
S
62 4 12
crypto_sign_keypair()
S
62 4 12
hex2bin()
S
61 4 12
crypto_pwhash_scryptsalsa208sha256_str()
S
54 3 23
crypto_pwhash_scryptsalsa208sha256_str_verify()
S
56 3 20
add()
S
57 3 16
library_version_major()
S
65 4 9
runtime_speed_test()
S
57 3 15
library_version_minor()
S
65 4 9
useNewSodiumAPI()
S
64 4 10
crypto_pwhash_str()
S
59 3 14
crypto_pwhash_str_verify()
S
60 3 13
memcmp()
S
62 3 11
compare()
S
62 3 11
crypto_secretstream_xchacha20poly1305_init_pull()
S
63 3 11
crypto_secretstream_xchacha20poly1305_push()
S
60 2 16
polyfill_is_fast()
S
66 3 9
bin2hex()
S
64 3 10
crypto_pwhash_scryptsalsa208sha256_is_available()
S
66 3 9
version_string()
S
66 3 9
crypto_pwhash_is_available()
S
66 3 9
crypto_secretstream_xchacha20poly1305_pull()
S
62 2 14
randombytes_random16()
S
70 2 6
crypto_secretstream_xchacha20poly1305_rekey()
S
69 2 7
crypto_kx_seed_keypair()
S
63 2 10
crypto_secretstream_xchacha20poly1305_init_push()
S
71 2 6
crypto_pwhash_str_needs_rehash()
S
60 1 11
crypto_aead_chacha20poly1305_ietf_keygen()
S
80 1 3
crypto_aead_aes256gcm_keygen()
S
80 1 3
crypto_aead_chacha20poly1305_keygen()
S
80 1 3
crypto_shorthash_keygen()
S
80 1 3
crypto_aead_xchacha20poly1305_ietf_keygen()
S
80 1 3
crypto_auth_keygen()
S
80 1 3
crypto_generichash_keygen()
S
80 1 3
crypto_kdf_keygen()
S
80 1 3
crypto_stream_keygen()
S
80 1 3
crypto_kx_secretkey()
S
70 1 7
crypto_kx_publickey()
S
71 1 7
crypto_secretbox_keygen()
S
80 1 3
crypto_secretstream_xchacha20poly1305_keygen()
S
80 1 3
crypto_kx_keypair()
S
72 1 5