/netbsd-current/sys/external/isc/libsodium/dist/test/default/ |
H A D | 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] [all...] |
H A D | 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] [all...] |
H A D | 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] [all...] |
/netbsd-current/external/bsd/wpa/dist/src/crypto/ |
H A D | 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;
|
H A D | 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;
|
H A D | 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;
|
H A D | 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;
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/chacha20/ |
H A D | stream_chacha20.h | 8 int (*stream)(unsigned char *c, unsigned long long clen, 10 int (*stream_ietf)(unsigned char *c, unsigned long long clen,
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_box/ |
H A D | crypto_box_easy.c | 66 unsigned long long clen, 70 return crypto_secretbox_open_detached(m, c, mac, clen, n, k); 76 unsigned long long clen, const unsigned char *n, 85 ret = crypto_box_open_detached_afternm(m, c, mac, clen, n, k); 93 unsigned long long clen, const unsigned char *n, 96 if (clen < crypto_box_MACBYTES) { 100 clen - crypto_box_MACBYTES, 106 unsigned long long clen, const unsigned char *n, 109 if (clen < crypto_box_MACBYTES) { 113 clen 64 crypto_box_open_detached_afternm(unsigned char *m, const unsigned char *c, const unsigned char *mac, unsigned long long clen, const unsigned char *n, const unsigned char *k) argument 74 crypto_box_open_detached(unsigned char *m, const unsigned char *c, const unsigned char *mac, unsigned long long clen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) argument 92 crypto_box_open_easy_afternm(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *k) argument 105 crypto_box_open_easy(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) argument [all...] |
/netbsd-current/games/boggle/mkindex/ |
H A D | 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) argument 114 p = buf + (*clen = pcount); 122 *clen = *rlen - *clen;
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_secretbox/xsalsa20poly1305/ |
H A D | secretbox_xsalsa20poly1305.c | 27 unsigned long long clen, 34 if (clen < 32) { 39 clen - 32, subkey) != 0) { 42 crypto_stream_xsalsa20_xor(m, c, clen, n, k); 26 crypto_secretbox_xsalsa20poly1305_open(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *k) argument
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/salsa20/ |
H A D | stream_salsa20.h | 8 int (*stream)(unsigned char *c, unsigned long long clen,
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/ |
H A D | crypto_stream.c | 30 crypto_stream(unsigned char *c, unsigned long long clen, argument 33 return crypto_stream_xsalsa20(c, clen, n, k);
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_aead/xchacha20poly1305/sodium/ |
H A D | 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 71 crypto_aead_xchacha20poly1305_ietf_decrypt_detached(unsigned char *m, unsigned char *nsec, const unsigned char *c, unsigned long long clen, const unsigned char *mac, const unsigned char *ad, unsigned long long adlen, const unsigned char *npub, const unsigned char *k) argument 97 crypto_aead_xchacha20poly1305_ietf_decrypt(unsigned char *m, unsigned long long *mlen_p, unsigned char *nsec, const unsigned char *c, unsigned long long clen, const unsigned char *ad, unsigned long long adlen, const unsigned char *npub, const unsigned char *k) argument [all...] |
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_box/curve25519xchacha20poly1305/ |
H A D | box_curve25519xchacha20poly1305.c | 113 unsigned long long clen, const unsigned char *n, const unsigned char *k) 115 return crypto_secretbox_xchacha20poly1305_open_detached(m, c, mac, clen, n, 122 unsigned long long clen, const unsigned char *n, const unsigned char *pk, 132 m, c, mac, clen, n, k); 140 unsigned char *m, const unsigned char *c, unsigned long long clen, 143 if (clen < crypto_box_curve25519xchacha20poly1305_MACBYTES) { 148 clen - crypto_box_curve25519xchacha20poly1305_MACBYTES, n, k); 153 unsigned char *m, const unsigned char *c, unsigned long long clen, 156 if (clen < crypto_box_curve25519xchacha20poly1305_MACBYTES) { 161 clen 111 crypto_box_curve25519xchacha20poly1305_open_detached_afternm( unsigned char *m, const unsigned char *c, const unsigned char *mac, unsigned long long clen, const unsigned char *n, const unsigned char *k) argument 120 crypto_box_curve25519xchacha20poly1305_open_detached( unsigned char *m, const unsigned char *c, const unsigned char *mac, unsigned long long clen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) argument 139 crypto_box_curve25519xchacha20poly1305_open_easy_afternm( unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *k) argument 152 crypto_box_curve25519xchacha20poly1305_open_easy( unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) argument [all...] |
/netbsd-current/external/bsd/nvi/dist/common/ |
H A D | 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...] |
/netbsd-current/crypto/external/bsd/openssl.old/dist/test/ |
H A D | rsa_test.c | 217 int clen = 0; local 223 clen = key1(*key, ctext); 226 clen = key2(*key, ctext); 229 clen = key3(*key, ctext); 232 return clen; 236 int success, unsigned char *ctext_ex, int *clen, 250 if (clen != NULL) 251 *clen = clentmp; 312 int clen = 0; local 317 ctext_ex, &clen, 235 test_rsa_simple(int idx, int en_pad_type, int de_pad_type, int success, unsigned char *ctext_ex, int *clen, RSA **retkey) argument [all...] |
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | 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);
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/salsa20/ref/ |
H A D | salsa20_ref.c | 19 stream_ref(unsigned char *c, unsigned long long clen, const unsigned char *n, argument 28 if (!clen) { 40 while (clen >= 64) { 48 clen -= 64; 51 if (clen) { 53 for (i = 0; i < (unsigned int) clen; i++) {
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/salsa2012/ref/ |
H A D | stream_salsa2012_ref.c | 14 crypto_stream_salsa2012(unsigned char *c, unsigned long long clen, argument 23 if (!clen) { 35 while (clen >= 64) { 43 clen -= 64; 46 if (clen) { 48 for (i = 0; i < (unsigned int)clen; ++i) {
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/salsa208/ref/ |
H A D | stream_salsa208_ref.c | 14 crypto_stream_salsa208(unsigned char *c, unsigned long long clen, argument 23 if (!clen) { 35 while (clen >= 64) { 43 clen -= 64; 46 if (clen) { 48 for (i = 0; i < (unsigned int)clen; ++i) {
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_secretbox/ |
H A D | crypto_secretbox.c | 57 unsigned long long clen, const unsigned char *n, 60 return crypto_secretbox_xsalsa20poly1305_open(m, c, clen, n, k); 56 crypto_secretbox_open(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *k) argument
|
/netbsd-current/usr.bin/cksum/ |
H A D | sum1.c | 51 csum1(int fd, uint32_t *cval, off_t *clen) argument 74 *clen = total;
|
H A D | sum2.c | 51 csum2(int fd, uint32_t *cval, off_t *clen) argument 78 *clen = total;
|
/netbsd-current/external/bsd/nvi/dist/ex/ |
H A D | ex.c | 133 wp->excmd.clen = 1; 136 wp->excmd.clen = tp->len; 270 for (notempty = 0; ecp->clen > 0; ++ecp->cp, --ecp->clen) 286 if (ecp->clen != 0 && ch == ':') { 288 while (--ecp->clen > 0 && (ch = (UCHAR_T)*++ecp->cp) == ':'); 300 if (ecp->clen != 0 && ch == '"') { 301 while (--ecp->clen > 0 && *++ecp->cp != '\n'); 305 --ecp->clen; 311 for (; ecp->clen > [all...] |