Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libsodium-devel-1.0.18 /
[ HOME SHELL ]
Name
Size
Permission
Action
AUTHORS
4.78
KB
-rw-r--r--
ChangeLog
27.5
KB
-rw-r--r--
README.markdown
2.04
KB
-rw-r--r--
THANKS
2.24
KB
-rw-r--r--
aead_aes256gcm.c
145.83
KB
-rw-r--r--
aead_aes256gcm.exp
3
B
-rw-r--r--
aead_aes256gcm2.c
13.62
KB
-rw-r--r--
aead_aes256gcm2.exp
3
B
-rw-r--r--
aead_chacha20poly1305.c
14.77
KB
-rw-r--r--
aead_chacha20poly1305.exp
2.35
KB
-rw-r--r--
aead_chacha20poly13052.c
63.87
KB
-rw-r--r--
aead_chacha20poly13052.exp
3
B
-rw-r--r--
aead_xchacha20poly1305.c
8.4
KB
-rw-r--r--
aead_xchacha20poly1305.exp
1.95
KB
-rw-r--r--
auth.c
4.96
KB
-rw-r--r--
auth.exp
1.12
KB
-rw-r--r--
auth2.c
1.08
KB
-rw-r--r--
auth2.exp
164
B
-rw-r--r--
auth3.c
1.43
KB
-rw-r--r--
auth3.exp
2
B
-rw-r--r--
auth5.c
1.06
KB
-rw-r--r--
auth5.exp
0
B
-rw-r--r--
auth6.c
449
B
-rw-r--r--
auth6.exp
328
B
-rw-r--r--
auth7.c
1.14
KB
-rw-r--r--
auth7.exp
0
B
-rw-r--r--
box.c
4.42
KB
-rw-r--r--
box.exp
1.47
KB
-rw-r--r--
box2.c
3.31
KB
-rw-r--r--
box2.exp
1.31
KB
-rw-r--r--
box7.c
1.53
KB
-rw-r--r--
box7.exp
0
B
-rw-r--r--
box8.c
1.7
KB
-rw-r--r--
box8.exp
0
B
-rw-r--r--
box_easy.c
2.84
KB
-rw-r--r--
box_easy.exp
908
B
-rw-r--r--
box_easy2.c
5.42
KB
-rw-r--r--
box_easy2.exp
15
B
-rw-r--r--
box_seal.c
2.85
KB
-rw-r--r--
box_seal.exp
22
B
-rw-r--r--
box_seed.c
839
B
-rw-r--r--
box_seed.exp
328
B
-rw-r--r--
chacha20.c
7.63
KB
-rw-r--r--
chacha20.exp
20.19
KB
-rw-r--r--
cmptest.h
4.6
KB
-rw-r--r--
codecs.c
11.94
KB
-rw-r--r--
codecs.exp
417
B
-rw-r--r--
core1.c
1.18
KB
-rw-r--r--
core1.exp
164
B
-rw-r--r--
core2.c
1.19
KB
-rw-r--r--
core2.exp
164
B
-rw-r--r--
core3.c
3.19
KB
-rw-r--r--
core3.exp
195
B
-rw-r--r--
core4.c
981
B
-rw-r--r--
core4.exp
264
B
-rw-r--r--
core5.c
908
B
-rw-r--r--
core5.exp
164
B
-rw-r--r--
core6.c
1.31
KB
-rw-r--r--
core6.exp
164
B
-rw-r--r--
core_ed25519.c
16.35
KB
-rw-r--r--
core_ed25519.exp
1.18
KB
-rw-r--r--
core_ristretto255.c
11.36
KB
-rw-r--r--
core_ristretto255.exp
458
B
-rw-r--r--
ed25519_convert.c
3.18
KB
-rw-r--r--
ed25519_convert.exp
167
B
-rw-r--r--
generichash.c
144.46
KB
-rw-r--r--
generichash.exp
4.25
KB
-rw-r--r--
generichash2.c
2.41
KB
-rw-r--r--
generichash2.exp
4.13
KB
-rw-r--r--
generichash3.c
7.19
KB
-rw-r--r--
generichash3.exp
5.51
KB
-rw-r--r--
hash.c
1.47
KB
-rw-r--r--
hash.exp
388
B
-rw-r--r--
hash2.exp
129
B
-rw-r--r--
hash3.c
335
B
-rw-r--r--
hash3.exp
129
B
-rw-r--r--
kdf.c
2.31
KB
-rw-r--r--
kdf.exp
5.97
KB
-rw-r--r--
keygen.c
2.62
KB
-rw-r--r--
keygen.exp
14
B
-rw-r--r--
kx.c
6.21
KB
-rw-r--r--
kx.exp
478
B
-rw-r--r--
metamorphic.c
5.48
KB
-rw-r--r--
metamorphic.exp
3
B
-rw-r--r--
misuse.c
4.37
KB
-rw-r--r--
misuse.exp
0
B
-rw-r--r--
onetimeauth.c
2.32
KB
-rw-r--r--
onetimeauth.exp
164
B
-rw-r--r--
onetimeauth2.c
1.38
KB
-rw-r--r--
onetimeauth2.exp
2
B
-rw-r--r--
onetimeauth7.c
948
B
-rw-r--r--
onetimeauth7.exp
0
B
-rw-r--r--
pwhash_argon2i.c
21.74
KB
-rw-r--r--
pwhash_argon2i.exp
3.03
KB
-rw-r--r--
pwhash_argon2id.c
25.31
KB
-rw-r--r--
pwhash_argon2id.exp
3.61
KB
-rw-r--r--
pwhash_scrypt.c
18.18
KB
-rw-r--r--
pwhash_scrypt.exp
4.5
KB
-rw-r--r--
pwhash_scrypt_ll.c
1.68
KB
-rw-r--r--
pwhash_scrypt_ll.exp
714
B
-rw-r--r--
quirks.h
488
B
-rw-r--r--
randombytes.c
3.87
KB
-rw-r--r--
randombytes.exp
220
B
-rw-r--r--
scalarmult.c
2.42
KB
-rw-r--r--
scalarmult.exp
260
B
-rw-r--r--
scalarmult2.c
794
B
-rw-r--r--
scalarmult2.exp
164
B
-rw-r--r--
scalarmult5.c
1.18
KB
-rw-r--r--
scalarmult5.exp
164
B
-rw-r--r--
scalarmult6.c
1.51
KB
-rw-r--r--
scalarmult6.exp
164
B
-rw-r--r--
scalarmult7.c
909
B
-rw-r--r--
scalarmult7.exp
2
B
-rw-r--r--
scalarmult8.c
24.37
KB
-rw-r--r--
scalarmult8.exp
2.16
KB
-rw-r--r--
scalarmult_ed25519.c
4.92
KB
-rw-r--r--
scalarmult_ed25519.exp
3
B
-rw-r--r--
scalarmult_ristretto255.c
1.87
KB
-rw-r--r--
scalarmult_ristretto255.exp
1.06
KB
-rw-r--r--
secretbox.c
3.5
KB
-rw-r--r--
secretbox.exp
1.47
KB
-rw-r--r--
secretbox2.c
2.37
KB
-rw-r--r--
secretbox2.exp
672
B
-rw-r--r--
secretbox7.c
1.05
KB
-rw-r--r--
secretbox7.exp
0
B
-rw-r--r--
secretbox8.c
1.2
KB
-rw-r--r--
secretbox8.exp
0
B
-rw-r--r--
secretbox_easy.c
4.44
KB
-rw-r--r--
secretbox_easy.exp
4.02
KB
-rw-r--r--
secretbox_easy2.c
2.54
KB
-rw-r--r--
secretbox_easy2.exp
10
B
-rw-r--r--
secretstream.c
11.43
KB
-rw-r--r--
secretstream.exp
3
B
-rw-r--r--
shorthash.c
968
B
-rw-r--r--
shorthash.exp
1.06
KB
-rw-r--r--
sign.c
2.65
MB
-rw-r--r--
sign.exp
512
B
-rw-r--r--
siphashx24.c
1.02
KB
-rw-r--r--
siphashx24.exp
2.06
KB
-rw-r--r--
sodium_core.c
936
B
-rw-r--r--
sodium_core.exp
17
B
-rw-r--r--
sodium_utils.c
8.22
KB
-rw-r--r--
sodium_utils.exp
756
B
-rw-r--r--
sodium_utils2.c
2.27
KB
-rw-r--r--
sodium_utils2.exp
46
B
-rw-r--r--
sodium_utils3.c
1.41
KB
-rw-r--r--
sodium_utils3.exp
43
B
-rw-r--r--
sodium_version.c
387
B
-rw-r--r--
sodium_version.exp
6
B
-rw-r--r--
stream.c
2.71
KB
-rw-r--r--
stream.exp
42.58
KB
-rw-r--r--
stream2.c
1.58
KB
-rw-r--r--
stream2.exp
130
B
-rw-r--r--
stream3.c
979
B
-rw-r--r--
stream3.exp
164
B
-rw-r--r--
stream4.c
2.02
KB
-rw-r--r--
stream4.exp
672
B
-rw-r--r--
verify1.c
2.05
KB
-rw-r--r--
verify1.exp
6
B
-rw-r--r--
xchacha20.c
25.49
KB
-rw-r--r--
xchacha20.exp
482
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sodium_utils.c
#define TEST_NAME "sodium_utils" #include "cmptest.h" int main(void) { unsigned char buf_add[1000]; unsigned char buf1[1000]; unsigned char buf2[1000]; unsigned char buf1_rev[1000]; unsigned char buf2_rev[1000]; unsigned char nonce[24]; char nonce_hex[49]; unsigned char *bin_padded; size_t bin_len, bin_len2; size_t bin_padded_len; size_t bin_padded_maxlen; size_t blocksize; unsigned int i; unsigned int j; randombytes_buf(buf1, sizeof buf1); memcpy(buf2, buf1, sizeof buf2); printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); sodium_memzero(buf1, 0U); printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); sodium_memzero(buf1, sizeof buf1 / 2); printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); printf("%d\n", sodium_memcmp(buf1, buf2, 0U)); sodium_memzero(buf2, sizeof buf2 / 2); printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); printf("%d\n", sodium_memcmp(buf1, guard_page, 0U)); printf("%d\n", sodium_memcmp(guard_page, buf2, 0U)); printf("%d\n", sodium_memcmp(guard_page, guard_page, 0U)); sodium_memzero(guard_page, 0U); memset(nonce, 0, sizeof nonce); sodium_increment(nonce, sizeof nonce); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); memset(nonce, 255, sizeof nonce); sodium_increment(nonce, sizeof nonce); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); nonce[1] = 1U; sodium_increment(nonce, sizeof nonce); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); nonce[1] = 0U; sodium_increment(nonce, sizeof nonce); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); nonce[0] = 255U; nonce[2] = 255U; sodium_increment(nonce, sizeof nonce); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); for (i = 0U; i < 1000U; i++) { bin_len = (size_t) randombytes_uniform(sizeof buf1); randombytes_buf(buf1, bin_len); randombytes_buf(buf2, bin_len); for (j = 0U; j < bin_len; j++) { buf1_rev[bin_len - 1 - j] = buf1[j]; buf2_rev[bin_len - 1 - j] = buf2[j]; } if (memcmp(buf1_rev, buf2_rev, bin_len) * sodium_compare(buf1, buf2, bin_len) < 0) { printf("sodium_compare() failure with length=%u\n", (unsigned int) bin_len); } memcpy(buf1, buf2, bin_len); if (sodium_compare(buf1, buf2, bin_len)) { printf("sodium_compare() equality failure with length=%u\n", (unsigned int) bin_len); } } printf("%d\n", sodium_compare(buf1, NULL, 0U)); printf("%d\n", sodium_compare(NULL, buf1, 0U)); memset(buf1, 0, sizeof buf1); if (sodium_is_zero(buf1, sizeof buf1) != 1) { printf("sodium_is_zero() failed\n"); } for (i = 0U; i < sizeof buf1; i++) { buf1[i]++; if (sodium_is_zero(buf1, sizeof buf1) != 0) { printf("sodium_is_zero() failed\n"); } buf1[i]--; } bin_len = randombytes_uniform(sizeof buf1); randombytes_buf(buf1, bin_len); memcpy(buf2, buf1, bin_len); memset(buf_add, 0, bin_len); j = randombytes_uniform(10000); for (i = 0U; i < j; i++) { sodium_increment(buf1, bin_len); sodium_increment(buf_add, bin_len); } sodium_add(buf2, buf_add, bin_len); if (sodium_compare(buf1, buf2, bin_len) != 0) { printf("sodium_add() failed\n"); } bin_len = randombytes_uniform(sizeof buf1); randombytes_buf(buf1, bin_len); memcpy(buf2, buf1, bin_len); memset(buf_add, 0xff, bin_len); sodium_increment(buf2, bin_len); sodium_increment(buf2, 0U); sodium_add(buf2, buf_add, bin_len); sodium_add(buf2, buf_add, 0U); if (sodium_compare(buf1, buf2, bin_len) != 0) { printf("sodium_add() failed\n"); } for (i = 0U; i < 1000U; i++) { randombytes_buf(buf1, bin_len); randombytes_buf(buf2, bin_len); sodium_add(buf1, buf2, bin_len); sodium_sub(buf1, buf2, bin_len); sodium_sub(buf1, buf2, 0U); if (sodium_is_zero(buf1, bin_len) && !sodium_is_zero(buf1, bin_len)) { printf("sodium_sub() failed\n"); } sodium_sub(buf1, buf1, bin_len); if (!sodium_is_zero(buf1, bin_len)) { printf("sodium_sub() failed\n"); } } assert(sizeof nonce >= 24U); memset(nonce, 0xfe, 24U); memset(nonce, 0xff, 6U); sodium_increment(nonce, 8U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); memset(nonce, 0xfe, 24U); memset(nonce, 0xff, 10U); sodium_increment(nonce, 12U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); memset(nonce, 0xff, 22U); sodium_increment(nonce, 24U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); assert(sizeof nonce >= 24U); memset(nonce, 0xfe, 24U); memset(nonce, 0xff, 6U); sodium_add(nonce, nonce, 7U); sodium_add(nonce, nonce, 8U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); memset(nonce, 0xfe, 24U); memset(nonce, 0xff, 10U); sodium_add(nonce, nonce, 11U); sodium_add(nonce, nonce, 12U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); memset(nonce, 0xff, 22U); sodium_add(nonce, nonce, 23U); sodium_add(nonce, nonce, 24U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); sodium_add(nonce, nonce, 0U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); sodium_add(nonce, guard_page, 0U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); sodium_add(guard_page, nonce, 0U); sodium_sub(nonce, nonce, 0U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); sodium_sub(nonce, guard_page, 0U); printf("%s\n", sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce)); sodium_sub(guard_page, nonce, 0U); randombytes_buf(buf1, 64U); randombytes_buf(buf2, 64U); memset(buf_add, 0, 64U); sodium_add(buf_add, buf1, 64U); assert(!sodium_is_zero(buf_add, 64U)); sodium_add(buf_add, buf2, 64U); assert(!sodium_is_zero(buf_add, 64U)); sodium_sub(buf_add, buf1, 64U); assert(!sodium_is_zero(buf_add, 64U)); sodium_sub(buf_add, buf2, 64U); assert(sodium_is_zero(buf_add, 64U)); for (i = 0; i < 2000U; i++) { bin_len = randombytes_uniform(200U); blocksize = 1U + randombytes_uniform(500U); bin_padded_maxlen = bin_len + (blocksize - bin_len % blocksize); bin_padded = (unsigned char *) sodium_malloc(bin_padded_maxlen); randombytes_buf(bin_padded, bin_padded_maxlen); assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, blocksize, bin_padded_maxlen - 1U) == -1); assert(sodium_pad(NULL, bin_padded, bin_len, blocksize, bin_padded_maxlen + 1U) == 0); assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, blocksize, bin_padded_maxlen + 1U) == 0); assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, 0U, bin_padded_maxlen) == -1); assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, blocksize, bin_padded_maxlen) == 0); assert(bin_padded_len == bin_padded_maxlen); assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len, bin_padded_len + 1U) == -1); assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len, 0U) == -1); assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len, blocksize) == 0); assert(bin_len2 == bin_len); sodium_free(bin_padded); } sodium_stackzero(512); return 0; }
Close