Home
last modified time | relevance | path

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

/freebsd/sys/contrib/libsodium/test/default/
H A Dsecretstream.c18 size_t m1_len, m2_len, m3_len; in main() local
30 m1_len = randombytes_uniform(1000); in main()
35 sodium_malloc(m1_len + crypto_secretstream_xchacha20poly1305_ABYTES); in main()
41 sodium_malloc((m1_len | m2_len | m3_len) + crypto_secretstream_xchacha20poly1305_ABYTES); in main()
44 m1 = (unsigned char *) sodium_malloc(m1_len); in main()
47 m1_ = (unsigned char *) sodium_malloc(m1_len); in main()
53 randombytes_buf(m1, m1_len); in main()
54 memcpy(m1_, m1, m1_len); in main()
70 (state, c1, &res_len, m1, m1_len, NULL, 0, 0); in main()
72 assert(res_len == m1_len + crypto_secretstream_xchacha20poly1305_ABYTES); in main()
[all …]