/freebsd/sys/contrib/libsodium/test/default/ |
H A D | aead_chacha20poly1305.c | 14 static const unsigned char firstkey[crypto_aead_chacha20poly1305_KEYBYTES] in tv() local 35 NULL, nonce, firstkey); in tv() 49 NULL, nonce, firstkey); in tv() 59 nonce, firstkey) != 0) { in tv() 72 nonce, firstkey) == 0); in tv() 76 nonce, firstkey) != 0) { in tv() 86 ad, ADLEN, nonce, firstkey) in tv() 94 NULL, 0U, NULL, nonce, firstkey); in tv() 107 NULL, 0U, nonce, firstkey) != 0) { in tv() 120 NULL, 0U, nonce, firstkey) != -1) { in tv() [all …]
|
H A D | secretbox_easy.c | 5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable 41 crypto_secretbox_easy(c, m, 131, nonce, firstkey); in main() 47 crypto_secretbox_detached(c, mac, m, 131, nonce, firstkey); in main() 59 crypto_secretbox_easy(c, c + 1, 131, nonce, firstkey); in main() 66 crypto_secretbox_easy(c + 1, c, 131, nonce, firstkey); in main() 73 crypto_secretbox_easy(c, c, 131, nonce, firstkey); in main() 79 assert(crypto_secretbox_easy(c, m, 0, nonce, firstkey) == 0); in main() 83 crypto_secretbox_easy(c, c, 0, nonce, firstkey); in main() 89 firstkey) != 0) { in main() 98 firstkey) != -1) { in main() [all …]
|
H A D | aead_xchacha20poly1305.c | 14 static const unsigned char firstkey[crypto_aead_xchacha20poly1305_ietf_KEYBYTES] in tv() local 44 NULL, nonce, firstkey); in tv() 59 NULL, nonce, firstkey); in tv() 68 ADLEN, nonce, firstkey) != 0) { in tv() 81 nonce, firstkey) != 0) { in tv() 91 ad, ADLEN, nonce, firstkey) in tv() 98 NULL, 0U, NULL, nonce, firstkey); in tv() 110 NULL, 0U, nonce, firstkey) != 0) { in tv() 123 NULL, 0U, nonce, firstkey) != -1) { in tv() 132 nonce, firstkey) != -1) { in tv() [all …]
|
H A D | secretbox2.c | 5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable 41 if (crypto_secretbox_open(m, c, 163, nonce, firstkey) == 0) { in main() 49 assert(crypto_secretbox_open(m, c, 31, nonce, firstkey) == -1); in main() 50 assert(crypto_secretbox_open(m, c, 16, nonce, firstkey) == -1); in main() 51 assert(crypto_secretbox_open(m, c, 1, nonce, firstkey) == -1); in main() 52 assert(crypto_secretbox_open(m, c, 0, nonce, firstkey) == -1); in main()
|
H A D | secretbox.c | 5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable 41 crypto_secretbox(c, m, 163, nonce, firstkey); in main() 50 crypto_secretbox(c, c, 163, nonce, firstkey); in main() 58 assert(crypto_secretbox(c, c, 31, nonce, firstkey) == -1); in main() 59 assert(crypto_secretbox(c, c, 12, nonce, firstkey) == -1); in main() 60 assert(crypto_secretbox(c, c, 1, nonce, firstkey) == -1); in main() 61 assert(crypto_secretbox(c, c, 0, nonce, firstkey) == -1); in main()
|
H A D | stream.c | 5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable 27 crypto_stream(output, sizeof output, nonce, firstkey); in main() 34 crypto_stream_xsalsa20_xor_ic(output, output, 4000, nonce, 0U, firstkey); in main() 38 crypto_stream_xsalsa20_xor_ic(output, output, 4000, nonce, 1U, firstkey); in main() 45 crypto_stream(output, (int) (i & 0xff), nonce, firstkey); in main() 52 (1ULL << 32) - 1ULL, firstkey); in main()
|
H A D | core1.c | 16 static unsigned char firstkey[32]; variable 23 crypto_core_hsalsa20(firstkey, zero, shared, c); in main() 30 printf("0x%02x", (unsigned int) firstkey[i]); in main()
|
H A D | stream3.c | 5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable 23 crypto_stream(rs, 32, nonce, firstkey); in main()
|
H A D | stream4.c | 5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable 40 crypto_stream_xor(c, m, 163, nonce, firstkey); in main()
|
H A D | core2.c | 5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable 25 crypto_core_hsalsa20(secondkey, nonceprefix, firstkey, c); in main()
|