/freebsd-13-stable/contrib/wpa/src/crypto/ |
H A D | aes-eax.c | 33 size_t buf_len; local 39 buf_len = nonce_len; 41 buf_len = data_len; 42 if (hdr_len > buf_len) 43 buf_len = hdr_len; 44 buf_len += 16; 46 buf = os_malloc(buf_len); 74 bin_clear_free(buf, buf_len); 97 size_t buf_len; local 103 buf_len [all...] |
H A D | sha1-tprf.c | 23 * @buf_len: Number of bytes of key to generate 30 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) 51 output_len[0] = (buf_len >> 8) & 0xff; 52 output_len[1] = buf_len & 0xff; 54 while (pos < buf_len) { 56 plen = buf_len - pos; 29 sha1_t_prf(const u8 *key, size_t key_len, const char *label, const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) argument
|
H A D | sha256-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 34 buf_len * 8); 46 * @buf_len: Number of bits of key to generate 50 * given key. If the requested buf_len is not divisible by eight, the least 64 size_t buf_len = (buf_len_bits + 7) / 8; local 77 while (pos < buf_len) { 78 plen = buf_len - pos; 30 sha256_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) argument
|
H A D | sha384-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 34 buf_len * 8); 46 * @buf_len: Number of bits of key to generate 50 * given key. If the requested buf_len is not divisible by eight, the least 64 size_t buf_len = (buf_len_bits + 7) / 8; local 77 while (pos < buf_len) { 78 plen = buf_len - pos; 30 sha384_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) argument
|
H A D | sha512-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 34 buf_len * 8); 46 * @buf_len: Number of bits of key to generate 50 * given key. If the requested buf_len is not divisible by eight, the least 64 size_t buf_len = (buf_len_bits + 7) / 8; local 77 while (pos < buf_len) { 78 plen = buf_len - pos; 30 sha512_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) argument
|
H A D | sha1-prf.c | 24 * @buf_len: Number of bytes of key to generate 31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) 48 while (pos < buf_len) { 49 plen = buf_len - pos; 30 sha1_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) argument
|
H A D | sha1.h | 19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len); 21 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len);
|
/freebsd-13-stable/crypto/openssl/crypto/ec/ |
H A D | ec_print.c | 19 size_t buf_len = 0; local 22 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); 24 if (buf_len == 0) 27 ret = BN_bin2bn(buf, buf_len, ret); 37 size_t buf_len = 0; local 41 if ((buf_len = BN_num_bytes(bn)) == 0) 42 buf_len = 1; 43 if ((buf = OPENSSL_malloc(buf_len)) == NULL) { 48 if (!BN_bn2binpad(bn, buf, buf_len)) { 61 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ct 80 size_t buf_len = 0, i; local [all...] |
/freebsd-13-stable/crypto/openssh/ |
H A D | crypto_api.h | 21 #define randombytes(buf, buf_len) arc4random_buf((buf), (buf_len))
|
H A D | hmac.c | 33 size_t buf_len; member in struct:ssh_hmac_ctx 54 ret->buf_len = ssh_digest_blocksize(ret->ictx); 55 if ((ret->buf = calloc(1, ret->buf_len)) == NULL) 71 if (klen <= ctx->buf_len) 74 ctx->buf_len) < 0) 76 for (i = 0; i < ctx->buf_len; i++) 78 if (ssh_digest_update(ctx->ictx, ctx->buf, ctx->buf_len) < 0) 80 for (i = 0; i < ctx->buf_len; i++) 82 if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0) 84 explicit_bzero(ctx->buf, ctx->buf_len); [all...] |
/freebsd-13-stable/contrib/wpa/src/eap_common/ |
H A D | eap_peap_common.h | 14 u8 *buf, size_t buf_len);
|
H A D | eap_peap_common.c | 17 u8 *buf, size_t buf_len) 60 extra[0] = buf_len & 0xff; 69 while (pos < buf_len) { 71 plen = buf_len - pos; 15 peap_prfplus(int version, const u8 *key, size_t key_len, const char *label, const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) argument
|
/freebsd-13-stable/contrib/bc/src/ |
H A D | read.c | 81 bool bc_read_buf(BcVec *vec, char *buf, size_t *buf_len) { argument 85 if (!*buf_len) return false; 93 nllen = *buf_len >= nllen ? nllen : *buf_len; 96 *buf_len -= nllen; 97 memmove(buf, nl + 1, *buf_len + 1); 102 bc_vec_npush(vec, *buf_len, buf); 103 *buf_len = 0; 125 if (bc_read_buf(vec, vm.buf, &vm.buf_len)) { 136 r = read(STDIN_FILENO, vm.buf + vm.buf_len, [all...] |
/freebsd-13-stable/crypto/openssl/crypto/evp/ |
H A D | bio_ok.c | 98 size_t buf_len; member in struct:ok_struct 190 i = ctx->buf_len - ctx->buf_off; 200 if (ctx->buf_len == ctx->buf_off) { 207 ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; 209 ctx->buf_len); 211 ctx->buf_len = 0; 222 n = IOBS - ctx->buf_len; 223 i = BIO_read(next, &(ctx->buf[ctx->buf_len]), n); 228 ctx->buf_len += i; 278 n = ctx->buf_len [all...] |
H A D | bio_b64.c | 34 int buf_len; member in struct:b64_struct 129 ctx->buf_len = 0; 136 if (ctx->buf_len > 0) { 137 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); 138 i = ctx->buf_len - ctx->buf_off; 147 if (ctx->buf_len == ctx->buf_off) { 148 ctx->buf_len = 0; 282 ctx->buf_len = 0; 284 ctx->buf_len = z; 289 (unsigned char *)ctx->buf, &ctx->buf_len, [all...] |
H A D | bio_enc.c | 28 int buf_len; member in struct:enc_struct 121 if (ctx->buf_len > 0) { 122 i = ctx->buf_len - ctx->buf_off; 130 if (ctx->buf_len == ctx->buf_off) { 131 ctx->buf_len = 0; 163 ctx->buf, &(ctx->buf_len)); 177 int j = outl - blocksize, buf_len; local 180 (unsigned char *)out, &buf_len, 185 ret += buf_len; 186 out += buf_len; [all...] |
/freebsd-13-stable/lib/libc/posix1e/ |
H A D | acl_id_to_name.c | 59 _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf, argument 73 i = snprintf(buf, buf_len, "%d", id); 75 i = snprintf(buf, buf_len, "%s", p->pw_name); 89 i = snprintf(buf, buf_len, "%d", id); 91 i = snprintf(buf, buf_len, "%s", g->gr_name);
|
/freebsd-13-stable/crypto/heimdal/kadmin/ |
H A D | get.c | 122 format_keytype(krb5_key_data *k, krb5_salt *def_salt, char *buf, size_t buf_len) argument 132 strlcpy(buf, s, buf_len); 135 strlcat(buf, "(", buf_len); 143 strlcat(buf, s, buf_len); 153 strlcat(buf, s, buf_len); 156 strlcat(buf, ")", buf_len); 161 unsigned int subfield, char *buf, size_t buf_len, int condensed) 166 krb5_unparse_name_fixed_short(context, princ->principal, buf, buf_len); 168 krb5_unparse_name_fixed(context, princ->principal, buf, buf_len); 172 time_t2str(princ->princ_expire_time, buf, buf_len, !condense 160 format_field(kadm5_principal_ent_t princ, unsigned int field, unsigned int subfield, char *buf, size_t buf_len, int condensed) argument [all...] |
/freebsd-13-stable/lib/libsbuf/tests/ |
H A D | sbuf_core_test.c | 51 ssize_t buf_len; local 79 buf_len = sbuf_len(sb); 80 ATF_REQUIRE_MSG(buf_len == 0, "sbuf_len (%zd) != 0", buf_len); 138 ssize_t buf_len, test_string_len; local 147 buf_len = sbuf_len(sb); 148 ATF_REQUIRE_MSG(buf_len == (ssize_t)(i * test_string_len), 149 "sbuf_len (%zd) != %zu", buf_len, i * test_string_len); 198 ssize_t buf_len; local 216 buf_len 242 test_string, buf_len); local [all...] |
/freebsd-13-stable/contrib/byacc/ |
H A D | mstring.c | 16 static size_t buf_len; variable 30 if (buf_len == 0) 32 buf_ptr = malloc(buf_len = 4096); 43 len = (size_t) vsnprintf(buf_ptr, buf_len, fmt, args); 45 if ((changed = (len > buf_len)) != 0) 47 char *new_ptr = realloc(buf_ptr, (buf_len * 3) / 2); 62 if (len >= buf_len) 214 buf_len = 0;
|
/freebsd-13-stable/contrib/wpa/src/eap_peer/ |
H A D | mschapv2.h | 26 const u8 *buf, size_t buf_len);
|
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | parse_reply-test.c | 52 size_t buf_len; member in struct:testcase 117 buf = p2 - t->buf_len; 118 memcpy (buf, t->buf, t->buf_len); 119 parse_reply (buf, t->buf_len);
|
/freebsd-13-stable/contrib/wpa/src/pae/ |
H A D | ieee802_1x_key.c | 41 int lab_len, ctx_len, ret_len, buf_len; local 50 buf_len = lab_len + ctx_len + 4; 58 buf = os_zalloc(buf_len); 64 WPA_PUT_BE16(&buf[buf_len - 2], ret_bits); 71 res = omac1_aes_128(kdk, buf, buf_len, ret); 73 res = omac1_aes_256(kdk, buf, buf_len, ret);
|
/freebsd-13-stable/contrib/bc/include/ |
H A D | read.h | 58 bool bc_read_buf(BcVec *vec, char *buf, size_t *buf_len);
|
/freebsd-13-stable/sys/compat/cloudabi/ |
H A D | cloudabi_random.c | 41 .iov_len = uap->buf_len
|