HomeSort by: relevance | last modified time | path
    Searched defs:clen (Results 1 - 25 of 171) sorted by relevancy

1 2 3 4 5 6 7

  /src/sys/external/isc/libsodium/dist/test/default/
auth5.c 12 size_t clen; local
14 for (clen = 0; clen < 1000; ++clen) {
16 randombytes_buf(c, clen);
17 crypto_auth(a, c, clen, key);
18 if (crypto_auth_verify(a, c, clen, key) != 0) {
19 printf("fail %u\n", (unsigned int) clen);
22 if (clen > 0) {
23 c[rand() % clen] += 1 + (rand() % 255)
    [all...]
auth7.c 12 size_t clen; local
14 for (clen = 0; clen < sizeof c; ++clen) {
16 randombytes_buf(c, clen);
17 crypto_auth_hmacsha512(a, c, clen, key);
18 if (crypto_auth_hmacsha512_verify(a, c, clen, key) != 0) {
19 printf("fail %u\n", (unsigned int) clen);
22 if (clen > 0) {
23 c[(size_t) rand() % clen] += 1 + (rand() % 255)
    [all...]
onetimeauth7.c 12 int clen; local
14 for (clen = 0; clen < 1000; ++clen) {
16 randombytes_buf(c, clen);
17 crypto_onetimeauth(a, c, clen, key);
18 if (crypto_onetimeauth_verify(a, c, clen, key) != 0) {
19 printf("fail %d\n", clen);
22 if (clen > 0) {
23 c[rand() % clen] += 1 + (rand() % 255)
    [all...]
  /src/external/bsd/wpa/dist/src/crypto/
sha256-kdf.c 40 size_t pos, clen; local
61 clen = outlen - pos;
62 if (clen > SHA256_MAC_LEN)
63 clen = SHA256_MAC_LEN;
64 os_memcpy(out + pos, T, clen);
65 pos += clen;
sha256-tlsprf.c 32 size_t clen; local
63 clen = outlen - pos;
64 if (clen > SHA256_MAC_LEN)
65 clen = SHA256_MAC_LEN;
66 os_memcpy(out + pos, P, clen);
67 pos += clen;
sha384-kdf.c 40 size_t pos, clen; local
61 clen = outlen - pos;
62 if (clen > SHA384_MAC_LEN)
63 clen = SHA384_MAC_LEN;
64 os_memcpy(out + pos, T, clen);
65 pos += clen;
sha384-tlsprf.c 32 size_t clen; local
63 clen = outlen - pos;
64 if (clen > SHA384_MAC_LEN)
65 clen = SHA384_MAC_LEN;
66 os_memcpy(out + pos, P, clen);
67 pos += clen;
sha512-kdf.c 40 size_t pos, clen; local
61 clen = outlen - pos;
62 if (clen > SHA512_MAC_LEN)
63 clen = SHA512_MAC_LEN;
64 os_memcpy(out + pos, T, clen);
65 pos += clen;
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_pwhash/scryptsalsa208sha256/
pbkdf2-sha256.c 57 size_t clen; local
88 clen = dkLen - i * 32;
89 if (clen > 32) {
90 clen = 32;
92 memcpy(&buf[i * 32], T, clen);
  /src/lib/libc/arch/powerpc/gen/
syncicache.c 74 size_t clen = sizeof(_cache_info); local
80 &_cache_info, &clen, NULL, 0) == 0) {
86 clen = sizeof(_cachelinesize);
88 &_cachelinesize, &clen, NULL, 0) < 0
  /src/lib/libc/arch/powerpc64/gen/
syncicache.c 72 size_t clen = sizeof(_cache_info); local
78 &_cache_info, &clen, NULL, 0) == 0) {
84 clen = sizeof(_cachelinesize);
86 &_cachelinesize, &clen, NULL, 0) < 0 || !_cachelinesize)
  /src/share/examples/pud/intro/
intro.c 96 size_t clen; local
103 clen = MIN(strlen(curstr), pc_read->pm_resid);
104 strncpy(pc_read->pm_data, curstr, clen);
106 clen = pc_read->pm_resid;
109 pc_read->pm_resid -= clen;
112 sizeof(struct pud_creq_read) + clen;
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_aead/xchacha20poly1305/sodium/
aead_xchacha20poly1305.c 53 unsigned long long clen = 0ULL; local
63 clen = mlen + crypto_aead_xchacha20poly1305_ietf_ABYTES;
65 *clen_p = clen;
74 unsigned long long clen,
89 (m, nsec, c, clen, mac, ad, adlen, npub2, k2);
101 unsigned long long clen,
110 if (clen >= crypto_aead_xchacha20poly1305_ietf_ABYTES) {
113 c, clen - crypto_aead_xchacha20poly1305_ietf_ABYTES,
114 c + clen - crypto_aead_xchacha20poly1305_ietf_ABYTES,
119 mlen = clen - crypto_aead_xchacha20poly1305_ietf_ABYTES
    [all...]
  /src/sys/lib/libkern/arch/powerpc/
syncicache.c 72 size_t clen = sizeof(_cache_info); local
75 &_cache_info, &clen, NULL, 0) == 0) {
81 clen = sizeof(_cachelinesize);
83 &_cachelinesize, &clen, NULL, 0) < 0
  /src/crypto/external/apache2/openssl/dist/crypto/asn1/
x_long.c 89 int clen, pad, i; local
106 clen = num_bits_ulong(utmp);
108 if (!(clen & 0x7))
114 clen = (clen + 7) >> 3;
119 for (i = clen - 1; i >= 0; i--) {
124 return clen + pad;
  /src/crypto/external/bsd/openssl/dist/crypto/asn1/
x_long.c 90 int clen, pad, i; local
107 clen = num_bits_ulong(utmp);
109 if (!(clen & 0x7))
115 clen = (clen + 7) >> 3;
120 for (i = clen - 1; i >= 0; i--) {
125 return clen + pad;
  /src/external/bsd/nvi/dist/common/
put.c 46 size_t blen, clen, len; local
130 if (len > 0 && (clen = cp->cno + (append ? 1 : 0)) > 0) {
131 MEMCPYW(bp, p, clen);
132 p += clen;
133 t += clen;
143 clen = len == 0 ? 0 : len - (cp->cno + (append ? 1 : 0));
168 if (clen > 0) {
169 MEMCPYW(t, p, clen);
170 t += clen;
191 ADD_SPACE_RETW(sp, bp, blen, ltp->len + clen);
    [all...]
  /src/external/bsd/nvi/dist/ex/
ex_join.c 44 size_t blen, clen, len, tlen; local
69 clen = tlen = 0;
92 tbp = bp + clen;
126 ++clen;
132 ++clen;
138 ++clen;
142 ++clen;
150 clen += len;
  /src/external/bsd/ppp/dist/pppd/
chap-md5.c 50 int clen; local
52 clen = (int)(drand48() * (MD5_MAX_CHALLENGE - MD5_MIN_CHALLENGE))
54 *cp++ = clen;
55 random_bytes(cp, clen);
  /src/external/bsd/wpa/dist/src/eap_common/
eap_pax_common.c 59 size_t clen = left > EAP_PAX_MAC_LEN ? EAP_PAX_MAC_LEN : left; local
62 os_memcpy(pos, mac, clen);
63 pos += clen;
64 left -= clen;
  /src/games/boggle/mkindex/
mkindex.c 57 int clen, rlen, prev, i; local
63 while (nextword(stdin, buf, &clen, &rlen) != NULL) {
78 off += clen + 1;
94 * Also set clen to the length of the compressed word (for mkindex) and
98 nextword(FILE *fp, char *buffer, int *clen, int *rlen)
114 p = buf + (*clen = pcount);
122 *clen = *rlen - *clen;
  /src/lib/libc/compat/net/
compat_ns_addr.c 109 unsigned int clen = 0; local
189 for (bp = buf; *bp++; ) clen++;
190 if (clen == 0) clen++;
191 if (clen > 18) clen = 18;
192 i = ((clen - 1) / 3) + 1;
193 bp = clen + buf - 3;
  /src/sys/compat/common/
uipc_syscalls_43.c 308 u_int clen; local
316 clen = CMSG_SPACE(accrightslen);
318 if (accrightslen < 0 || clen > MLEN)
322 ctl->m_len = clen;
335 msg->msg_controllen = clen;
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_aead/chacha20poly1305/sodium/
aead_chacha20poly1305.c 70 unsigned long long clen = 0ULL; local
83 clen = mlen + crypto_aead_chacha20poly1305_ABYTES;
85 *clen_p = clen;
145 unsigned long long clen = 0ULL; local
158 clen = mlen + crypto_aead_chacha20poly1305_ietf_ABYTES;
160 *clen_p = clen;
169 unsigned long long clen,
192 mlen = clen;
220 unsigned long long clen,
229 if (clen >= crypto_aead_chacha20poly1305_ABYTES)
    [all...]
  /src/usr.bin/apply/
apply.c 61 size_t clen, l; local
151 if ((c = malloc(clen = 1024)) == NULL)
166 if (l > clen) {
171 clen = l;

Completed in 73 milliseconds

1 2 3 4 5 6 7