⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
libsodium-devel-1.0.18
/
View File Name :
core4.c
#define TEST_NAME "core4" #include "cmptest.h" static unsigned char k[32] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216 }; static unsigned char in[16] = { 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116 }; static unsigned char c[16] = { 101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107 }; static unsigned char out[64]; int main(void) { int i; crypto_core_salsa20(out, in, k, c); for (i = 0; i < 64; ++i) { if (i > 0) { printf(","); } else { printf(" "); } printf("%3u", (unsigned int) out[i]); if (i % 8 == 7) { printf("\n"); } } return 0; }