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