Lines Matching refs:plen
29 size_t plen; in tv() local
40 for (plen = 1U; plen < sizeof out; plen++) { in tv()
41 part = (unsigned char *) sodium_malloc(plen); in tv()
42 crypto_stream_chacha20_xor(part, out, plen, nonce, key); in tv()
43 if (memcmp(part, zero, plen) != 0) { in tv()
44 printf("Failed with length %lu\n", (unsigned long) plen); in tv()
50 for (plen = 1U; plen < 66; plen += 3) { in tv()
51 memset(out, (int) (plen & 0xff), sizeof out); in tv()
52 crypto_stream_chacha20(out, plen, nonce, key); in tv()
116 size_t plen; in tv_ietf() local
128 for (plen = 1U; plen < sizeof out; plen++) { in tv_ietf()
129 part = (unsigned char *) sodium_malloc(plen); in tv_ietf()
130 crypto_stream_chacha20_ietf_xor_ic(part, out, plen, nonce, tests[i].ic, key); in tv_ietf()
131 if (memcmp(part, zero, plen) != 0) { in tv_ietf()
132 printf("Failed with length %lu\n", (unsigned long) plen); in tv_ietf()
138 for (plen = 1U; plen < 66; plen += 3) { in tv_ietf()
139 memset(out, (int) (plen & 0xff), sizeof out); in tv_ietf()
140 crypto_stream_chacha20(out, plen, nonce, key); in tv_ietf()