HomeSort by: relevance | last modified time | path
    Searched refs:nonce (Results 1 - 25 of 45) sorted by relevancy

1 2

  /src/sys/external/isc/libsodium/dist/test/default/
sodium_utils.c 12 unsigned char nonce[24]; local in function:main
33 memset(nonce, 0, sizeof nonce);
34 sodium_increment(nonce, sizeof nonce);
36 sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce));
37 memset(nonce, 255, sizeof nonce);
38 sodium_increment(nonce, sizeof nonce)
    [all...]
secretbox_easy2.c 11 unsigned char *nonce; local in function:main
21 nonce = (unsigned char *) sodium_malloc(crypto_secretbox_NONCEBYTES);
26 randombytes_buf(nonce, crypto_secretbox_NONCEBYTES);
27 crypto_secretbox_easy(c, m, (unsigned long long) mlen, nonce, k);
29 m2, c, (unsigned long long) mlen + crypto_secretbox_MACBYTES, nonce,
36 if (crypto_secretbox_open_easy(m2, c, (unsigned long long) i, nonce,
42 crypto_secretbox_detached(c, mac, m, (unsigned long long) mlen, nonce, k);
44 nonce, k) != 0) {
48 nonce, k) != 0) {
54 crypto_secretbox_easy(c, c, (unsigned long long) mlen, nonce, k)
    [all...]
chacha20.c 23 unsigned char nonce[crypto_stream_chacha20_NONCEBYTES]; local in function:tv
35 sodium_hex2bin(nonce, sizeof nonce, tests[i].nonce_hex,
37 crypto_stream_chacha20(out, sizeof out, nonce, key);
42 crypto_stream_chacha20_xor(part, out, plen, nonce, key);
52 crypto_stream_chacha20(out, plen, nonce, key);
57 crypto_stream_chacha20(out, sizeof out, nonce, key);
61 assert(crypto_stream_chacha20(out, 0U, nonce, key) == 0);
62 assert(crypto_stream_chacha20_xor(out, out, 0U, nonce, key) == 0);
63 assert(crypto_stream_chacha20_xor(out, out, 0U, nonce, key) == 0)
110 unsigned char nonce[crypto_stream_chacha20_IETF_NONCEBYTES]; local in function:tv_ietf
    [all...]
xchacha20.c 85 const char nonce[crypto_stream_xchacha20_NONCEBYTES * 2 + 1]; member in struct:XChaCha20TV_
107 unsigned char *nonce; local in function:tv_stream_xchacha20
114 nonce = (unsigned char *) sodium_malloc(crypto_stream_xchacha20_NONCEBYTES);
121 sodium_hex2bin(nonce, crypto_stream_xchacha20_NONCEBYTES,
122 tv->nonce, strlen(tv->nonce), NULL, NULL, NULL);
126 crypto_stream_xchacha20(out2, out_len, nonce, key);
128 crypto_stream_xchacha20_xor(out2, out, out_len, nonce, key);
130 crypto_stream_xchacha20_xor_ic(out2, out, out_len, nonce, 0, key);
132 crypto_stream_xchacha20_xor_ic(out2, out, out_len, nonce, 1, key)
194 const char nonce[crypto_secretbox_xchacha20poly1305_NONCEBYTES * 2 + 1]; member in struct:XChaCha20Poly1305TV_
216 unsigned char *nonce; local in function:tv_secretbox_xchacha20poly1305
308 unsigned char *nonce; local in function:tv_box_xchacha20poly1305
    [all...]
box_easy2.c 19 unsigned char *nonce; local in function:main
42 nonce = (unsigned char *) sodium_malloc(crypto_box_NONCEBYTES);
49 randombytes_buf(nonce, crypto_box_NONCEBYTES);
50 ret = crypto_box_easy(c, m, mlen, nonce, bobpk, alicesk);
54 nonce, alicepk, bobsk) != 0) {
61 if (crypto_box_open_easy(m2, c, (unsigned long long) i, nonce, alicepk,
69 crypto_box_easy(c, c, (unsigned long long) mlen, nonce, bobpk, alicesk);
75 nonce, alicepk, bobsk) != 0) {
91 if (crypto_box_easy_afternm(c, m, 0, nonce, k1) != 0) {
96 crypto_box_easy_afternm(c, m, (unsigned long long) mlen, nonce, k1)
    [all...]
stream.c 11 static unsigned char nonce[24] = { 0x69, 0x69, 0x6e, 0xe9, 0x55, 0xb6, variable in typeref:typename:unsigned char[24]
27 crypto_stream(output, sizeof output, nonce, firstkey);
34 crypto_stream_xsalsa20_xor_ic(output, output, 4000, nonce, 0U, firstkey);
38 crypto_stream_xsalsa20_xor_ic(output, output, 4000, nonce, 1U, firstkey);
45 crypto_stream(output, (int) (i & 0xff), nonce, firstkey);
51 crypto_stream_xsalsa20_xor_ic(output, output, 192, nonce,
aead_chacha20poly1305.c 20 static const unsigned char nonce[crypto_aead_chacha20poly1305_NPUBBYTES] local in function:tv
35 NULL, nonce, firstkey);
49 NULL, nonce, firstkey);
59 nonce, firstkey) != 0) {
72 nonce, firstkey) == 0);
76 nonce, firstkey) != 0) {
86 ad, ADLEN, nonce, firstkey)
94 NULL, 0U, NULL, nonce, firstkey);
107 NULL, 0U, nonce, firstkey) != 0) {
120 NULL, 0U, nonce, firstkey) != -1)
200 static const unsigned char nonce[crypto_aead_chacha20poly1305_ietf_NPUBBYTES] local in function:tv_ietf
    [all...]
aead_xchacha20poly1305.c 25 static const unsigned char nonce[crypto_aead_xchacha20poly1305_ietf_NPUBBYTES] local in function:tv
44 NULL, nonce, firstkey);
59 NULL, nonce, firstkey);
68 ADLEN, nonce, firstkey) != 0) {
81 nonce, firstkey) != 0) {
91 ad, ADLEN, nonce, firstkey)
98 NULL, 0U, NULL, nonce, firstkey);
110 NULL, 0U, nonce, firstkey) != 0) {
123 NULL, 0U, nonce, firstkey) != -1) {
132 nonce, firstkey) != -1)
    [all...]
stream3.c 11 static unsigned char nonce[24] = { 0x69, 0x69, 0x6e, 0xe9, 0x55, 0xb6, variable in typeref:typename:unsigned char[24]
23 crypto_stream(rs, 32, nonce, firstkey);
secretbox_easy.c 11 static unsigned char nonce[24] = { 0x69, 0x69, 0x6e, 0xe9, 0x55, 0xb6, variable in typeref:typename:unsigned char[24]
41 crypto_secretbox_easy(c, m, 131, nonce, firstkey);
47 crypto_secretbox_detached(c, mac, m, 131, nonce, firstkey);
59 crypto_secretbox_easy(c, c + 1, 131, nonce, firstkey);
66 crypto_secretbox_easy(c + 1, c, 131, nonce, firstkey);
73 crypto_secretbox_easy(c, c, 131, nonce, firstkey);
79 assert(crypto_secretbox_easy(c, m, 0, nonce, firstkey) == 0);
83 crypto_secretbox_easy(c, c, 0, nonce, firstkey);
88 if (crypto_secretbox_open_easy(c, c, crypto_secretbox_MACBYTES, nonce,
97 if (crypto_secretbox_open_easy(c, c, crypto_secretbox_MACBYTES, nonce,
    [all...]
aead_aes256gcm.c 3090 unsigned char *nonce; local in function:tv
3102 nonce = (unsigned char *) sodium_malloc(crypto_aead_aes256gcm_NPUBBYTES);
3111 sodium_hex2bin(nonce, crypto_aead_aes256gcm_NPUBBYTES,
3141 ad, ad_len, NULL, nonce, key);
3157 ad, ad_len, NULL, nonce, key);
3174 ad, ad_len, nonce, key) != -1) {
3184 ad, ad_len, nonce, key) != -1) {
3190 ad, ad_len, nonce, key) != 0) {
3195 ad, ad_len, nonce, key) != 0) {
3206 mac, ad, ad_len, nonce, key) != 0)
    [all...]
secretbox.c 11 static unsigned char nonce[24] = { 0x69, 0x69, 0x6e, 0xe9, 0x55, 0xb6, variable in typeref:typename:unsigned char[24]
41 crypto_secretbox(c, m, 163, nonce, firstkey);
50 crypto_secretbox(c, c, 163, nonce, firstkey);
58 assert(crypto_secretbox(c, c, 31, nonce, firstkey) == -1);
59 assert(crypto_secretbox(c, c, 12, nonce, firstkey) == -1);
60 assert(crypto_secretbox(c, c, 1, nonce, firstkey) == -1);
61 assert(crypto_secretbox(c, c, 0, nonce, firstkey) == -1);
secretbox2.c 11 static unsigned char nonce[24] = { 0x69, 0x69, 0x6e, 0xe9, 0x55, 0xb6, variable in typeref:typename:unsigned char[24]
41 if (crypto_secretbox_open(m, c, 163, nonce, firstkey) == 0) {
49 assert(crypto_secretbox_open(m, c, 31, nonce, firstkey) == -1);
50 assert(crypto_secretbox_open(m, c, 16, nonce, firstkey) == -1);
51 assert(crypto_secretbox_open(m, c, 1, nonce, firstkey) == -1);
52 assert(crypto_secretbox_open(m, c, 0, nonce, firstkey) == -1);
box_easy.c 17 static unsigned char nonce[24] = { 0x69, 0x69, 0x6e, 0xe9, 0x55, 0xb6, variable in typeref:typename:unsigned char[24]
44 ret = crypto_box_easy(c, m, 131, nonce, bobpk, alicesk);
53 ret = crypto_box_easy(c, c, 0, nonce, bobpk, alicesk);
60 crypto_box_open_easy(c, c, crypto_box_MACBYTES, nonce, bobpk, alicesk);
67 ret = crypto_box_open_easy(c, c, crypto_box_MACBYTES, nonce, bobpk, alicesk);
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_box/
crypto_box_seal.c 10 _crypto_box_seal_nonce(unsigned char *nonce,
18 crypto_generichash_final(&st, nonce, crypto_box_NONCEBYTES);
27 unsigned char nonce[crypto_box_NONCEBYTES]; local in function:crypto_box_seal
36 _crypto_box_seal_nonce(nonce, epk, pk);
38 nonce, pk, esk);
41 sodium_memzero(nonce, sizeof nonce);
51 unsigned char nonce[crypto_box_NONCEBYTES]; local in function:crypto_box_seal_open
56 _crypto_box_seal_nonce(nonce, c, pk);
61 nonce, c, sk)
    [all...]
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_box/curve25519xchacha20poly1305/
box_seal_curve25519xchacha20poly1305.c 10 _crypto_box_curve25519xchacha20poly1305_seal_nonce(unsigned char *nonce,
22 crypto_generichash_final(&st, nonce,
33 unsigned char nonce[crypto_box_curve25519xchacha20poly1305_NONCEBYTES]; local in function:crypto_box_curve25519xchacha20poly1305_seal
42 _crypto_box_curve25519xchacha20poly1305_seal_nonce(nonce, epk, pk);
45 nonce, pk, esk);
48 sodium_memzero(nonce, sizeof nonce);
59 unsigned char nonce[crypto_box_curve25519xchacha20poly1305_NONCEBYTES]; local in function:crypto_box_curve25519xchacha20poly1305_seal_open
64 _crypto_box_curve25519xchacha20poly1305_seal_nonce(nonce, c, pk);
72 nonce, c, sk)
    [all...]
  /src/sys/crypto/chacha/arch/arm/
chacha_neon_impl.c 79 const uint8_t nonce[static 12],
85 chacha_stream_neon(s, nbytes, blkno, nonce, key, nr);
92 const uint8_t nonce[static 12],
98 chacha_stream_xor_neon(c, p, nbytes, blkno, nonce, key, nr);
104 const uint8_t nonce[static 24],
110 xchacha_stream_neon(s, nbytes, blkno, nonce, key, nr);
117 const uint8_t nonce[static 24],
123 xchacha_stream_xor_neon(c, p, nbytes, blkno, nonce, key, nr);
chacha_neon.c 199 const uint8_t nonce[static 12],
205 chacha_stream256_neon(s, blkno, nonce, k, chacha_const32, nr);
218 le32dec(nonce),
219 le32dec(nonce + 4),
220 le32dec(nonce + 8)
259 const uint8_t nonce[static 12],
265 chacha_stream_xor256_neon(s, p, blkno, nonce, k,
279 le32dec(nonce),
280 le32dec(nonce + 4),
281 le32dec(nonce + 8
    [all...]
  /src/sys/crypto/chacha/arch/x86/
chacha_sse2_impl.c 73 const uint8_t nonce[static 12],
79 chacha_stream_sse2(s, nbytes, blkno, nonce, key, nr);
86 const uint8_t nonce[static 12],
92 chacha_stream_xor_sse2(c, p, nbytes, blkno, nonce, key, nr);
98 const uint8_t nonce[static 24],
104 xchacha_stream_sse2(s, nbytes, blkno, nonce, key, nr);
111 const uint8_t nonce[static 24],
117 xchacha_stream_xor_sse2(c, p, nbytes, blkno, nonce, key, nr);
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_sign/ed25519/ref10/
sign.c 71 unsigned char nonce[64]; local in function:_crypto_sign_ed25519_detached
79 _crypto_sign_ed25519_synthetic_r_hv(&hs, nonce, az);
86 crypto_hash_sha512_final(&hs, nonce);
90 sc25519_reduce(nonce);
91 ge25519_scalarmult_base(&R, nonce);
101 sc25519_muladd(sig + 32, hram, az, nonce);
104 sodium_memzero(nonce, sizeof nonce);
obsolete.c 38 unsigned char nonce[64]; local in function:crypto_sign_edwards25519sha512batch
47 crypto_hash_sha512_final(&hs, nonce);
50 sc25519_reduce(nonce);
51 ge25519_scalarmult_base(&R, nonce);
58 sc25519_muladd(sig + 32, hram, nonce, sk);
  /src/sys/crypto/chacha/
chacha_impl.c 143 const uint8_t nonce[static CHACHA_STREAM_NONCEBYTES],
148 (*chacha_impl->ci_chacha_stream)(s, nbytes, blkno, nonce, key, nr);
153 const uint8_t nonce[static CHACHA_STREAM_NONCEBYTES],
158 (*chacha_impl->ci_chacha_stream_xor)(c, p, nbytes, blkno, nonce, key,
164 const uint8_t nonce[static XCHACHA_STREAM_NONCEBYTES],
169 (*chacha_impl->ci_xchacha_stream)(s, nbytes, blkno, nonce, key, nr);
174 const uint8_t nonce[static XCHACHA_STREAM_NONCEBYTES],
179 (*chacha_impl->ci_xchacha_stream_xor)(c, p, nbytes, blkno, nonce, key,
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_secretstream/xchacha20poly1305/
secretstream_xchacha20poly1305.c 20 #define STATE_COUNTER(STATE) ((STATE)->nonce)
21 #define STATE_INONCE(STATE) ((STATE)->nonce + \
53 COMPILER_ASSERT(sizeof state->nonce ==
99 state->nonce, state->k);
129 crypto_stream_chacha20_ietf(block, sizeof block, state->nonce, state->k);
140 state->nonce, 1U, state->k);
145 crypto_stream_chacha20_ietf_xor_ic(c, m, mlen, state->nonce, 2U, state->k);
205 crypto_stream_chacha20_ietf(block, sizeof block, state->nonce, state->k);
216 state->nonce, 1U, state->k);
240 crypto_stream_chacha20_ietf_xor_ic(m, c, mlen, state->nonce, 2U, state->k)
    [all...]
  /src/sys/net80211/
ieee80211_crypto_ccmp.c 287 uint8_t nonce[13]; local in function:ccmp_init_blocks
296 /* nonce[0] is qos, determined later */
297 IEEE80211_ADDR_COPY(nonce + 1, wh->i_addr2);
298 nonce[7] = pn >> 40;
299 nonce[8] = pn >> 32;
300 nonce[9] = pn >> 24;
301 nonce[10] = pn >> 16;
302 nonce[11] = pn >> 8;
303 nonce[12] = pn >> 0;
347 nonce[0] = qos
    [all...]
  /src/sys/crypto/cprng_fast/
cprng_fast.c 55 uint8_t nonce[CHACHA_STREAM_NONCEBYTES];
164 (void)memset(cprng->nonce, 0, sizeof cprng->nonce);
185 le64enc(cprng->nonce, 1 + le64dec(cprng->nonce));
186 chacha_stream(cprng->buf, sizeof(cprng->buf), 0, cprng->nonce,
212 uint8_t nonce[CHACHA_STREAM_NONCEBYTES] = {0};
222 chacha_stream(buf, len, 0, nonce, seed, 8);
54 uint8_t nonce[CHACHA_STREAM_NONCEBYTES]; member in struct:cprng_fast
208 uint8_t nonce[CHACHA_STREAM_NONCEBYTES] = {0}; local in function:cprng_fast_buf_long

Completed in 41 milliseconds

1 2