Home
last modified time | relevance | path

Searched refs:ad_len (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/contrib/libsodium/test/default/
H A Daead_aes256gcm.c3095 size_t ad_len; in tv() local
3119 ad_len = strlen(tests[i].ad_hex) / 2; in tv()
3120 ad = (unsigned char *) sodium_malloc(ad_len); in tv()
3121 sodium_hex2bin(ad, ad_len, in tv()
3141 ad, ad_len, NULL, nonce, key); in tv()
3157 ad, ad_len, NULL, nonce, key); in tv()
3174 ad, ad_len, nonce, key) != -1) { in tv()
3184 ad, ad_len, nonce, key) != -1) { in tv()
3190 ad, ad_len, nonce, key) != 0) { in tv()
3195 ad, ad_len, nonce, key) != 0) { in tv()
[all …]
H A Dsecretstream.c17 size_t ad_len; in main() local
29 ad_len = randombytes_uniform(100); in main()
43 ad = (unsigned char *) sodium_malloc(ad_len); in main()
51 randombytes_buf(ad, ad_len); in main()
79 (state, c3, NULL, m3, m3_len, ad, ad_len, in main()
103 if (ad_len > 0) { in main()
111 c3, m3_len + crypto_secretstream_xchacha20poly1305_ABYTES, ad, ad_len); in main()
120 c3, m3_len + crypto_secretstream_xchacha20poly1305_ABYTES, ad, ad_len); in main()