Home
last modified time | relevance | path

Searched refs:firstkey (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/contrib/libsodium/test/default/
H A Daead_chacha20poly1305.c14 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()
86 ad, ADLEN, nonce, firstkey) in tv()
94 NULL, 0U, NULL, nonce, firstkey); in tv()
120 NULL, 0U, nonce, firstkey) != -1) { in tv()
129 nonce, firstkey) != -1) { in tv()
139 NULL, 0U, NULL, nonce, firstkey); in tv()
218 NULL, nonce, firstkey); in tv_ietf()
[all …]
H A Dsecretbox_easy.c41 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()
106 crypto_secretbox_easy(c, c + 10, 10, nonce, firstkey); in main()
[all …]
H A Daead_xchacha20poly1305.c14 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 Dsecretbox2.c5 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 Dsecretbox.c5 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 Dstream.c5 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 Dcore1.c16 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 Dstream3.c5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable
23 crypto_stream(rs, 32, nonce, firstkey); in main()
H A Dstream4.c5 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 Dcore2.c5 static unsigned char firstkey[32] = { 0x1b, 0x27, 0x55, 0x64, 0x73, 0xe9, 0x85, variable
25 crypto_core_hsalsa20(secondkey, nonceprefix, firstkey, c); in main()