Home
last modified time | relevance | path

Searched refs:out_len (Results 1 – 25 of 104) sorted by relevance

12345

/freebsd/crypto/heimdal/lib/wind/
H A Dutf8.c115 wind_utf8ucs4(const char *in, uint32_t *out, size_t *out_len) in wind_utf8ucs4() argument
129 if (o >= *out_len) in wind_utf8ucs4()
135 *out_len = o; in wind_utf8ucs4()
151 wind_utf8ucs4_length(const char *in, size_t *out_len) in wind_utf8ucs4_length() argument
153 return wind_utf8ucs4(in, NULL, out_len); in wind_utf8ucs4_length()
179 wind_ucs4utf8(const uint32_t *in, size_t in_len, char *out, size_t *out_len) in wind_ucs4utf8() argument
201 if (o >= *out_len) in wind_ucs4utf8()
221 if (o + 1 >= *out_len) in wind_ucs4utf8()
225 *out_len = o; in wind_ucs4utf8()
241 wind_ucs4utf8_length(const uint32_t *in, size_t in_len, size_t *out_len) in wind_ucs4utf8_length() argument
[all …]
H A Dldap.c38 put_char(uint32_t *out, size_t *o, uint32_t c, size_t out_len) in put_char() argument
40 if (*o >= out_len) in put_char()
51 size_t *out_len) in _wind_ldap_case_exact_attribute() argument
56 *out_len = 0; in _wind_ldap_case_exact_attribute()
60 if (put_char(out, &o, 0x20, *out_len)) in _wind_ldap_case_exact_attribute()
67 if (put_char(out, &o, 0x20, *out_len) || in _wind_ldap_case_exact_attribute()
68 put_char(out, &o, 0x20, *out_len)) in _wind_ldap_case_exact_attribute()
73 if (put_char(out, &o, tmp[i++], *out_len)) in _wind_ldap_case_exact_attribute()
86 put_char(out, &o, 0x20, *out_len); in _wind_ldap_case_exact_attribute()
88 *out_len = o; in _wind_ldap_case_exact_attribute()
H A Dtest-map.c50 size_t out_len; member
65 size_t out_len = c->out_len; in try() local
66 uint32_t *tmp = malloc(out_len * sizeof(uint32_t)); in try()
67 if (tmp == NULL && out_len != 0) in try()
69 ret = _wind_stringprep_map(c->in, c->in_len, tmp, &out_len, WIND_PROFILE_NAME); in try()
74 if (out_len != c->out_len) { in try()
79 if (memcmp(c->out, tmp, out_len * sizeof(uint32_t)) != 0) { in try()
H A Dnormalize.c69 uint32_t *out, size_t *out_len) in hangul_decomp() argument
85 if (*out_len < o) in hangul_decomp()
91 *out_len = o; in hangul_decomp()
124 uint32_t *out, size_t *out_len) in compat_decomp() argument
131 size_t sub_len = *out_len - o; in compat_decomp()
156 if (o >= *out_len) in compat_decomp()
163 *out_len = o; in compat_decomp()
251 uint32_t *out, size_t *out_len) in combine() argument
263 if (o >= *out_len) in combine()
283 if (o >= *out_len) in combine()
[all …]
H A Dpunycode.c90 char *out, size_t *out_len) in wind_punycode_label_toascii() argument
104 if (o >= *out_len) in wind_punycode_label_toascii()
111 if (o >= *out_len) in wind_punycode_label_toascii()
117 if (o + 4 >= *out_len) in wind_punycode_label_toascii()
148 if (o >= *out_len) in wind_punycode_label_toascii()
153 if (o >= *out_len) in wind_punycode_label_toascii()
166 *out_len = o; in wind_punycode_label_toascii()
H A Dstringprep.c57 uint32_t *out, size_t *out_len, in wind_stringprep() argument
66 *out_len = 0; in wind_stringprep()
80 olen = *out_len; in wind_stringprep()
99 ret = _wind_ldap_case_exact_attribute(tmp, olen, out, out_len); in wind_stringprep()
107 *out_len = olen; in wind_stringprep()
H A Dtest-normalize.c90 size_t out_len; in test() local
107 out_len = parse_vector(c, out); in test()
122 if (out_len != norm_len) { in test()
124 dump_vector("Expected", out, out_len); in test()
129 if (memcmp(out, tmp, out_len * sizeof(uint32_t)) != 0) { in test()
131 dump_vector("Expected", out, out_len); in test()
H A Dmap.c54 uint32_t *out, size_t *out_len, in _wind_stringprep_map() argument
72 if (o >= *out_len) in _wind_stringprep_map()
77 if (o >= *out_len) in _wind_stringprep_map()
83 *out_len = o; in _wind_stringprep_map()
/freebsd/contrib/wpa/src/utils/
H A Dbase64.c27 size_t *out_len, const char *table, int add_pad) in base64_gen_encode() argument
83 if (out_len) in base64_gen_encode()
84 *out_len = pos - out; in base64_gen_encode()
90 size_t *out_len, const char *table) in base64_gen_decode() argument
153 *out_len = pos - out; in base64_gen_decode()
170 char * base64_encode(const void *src, size_t len, size_t *out_len) in base64_encode() argument
172 return base64_gen_encode(src, len, out_len, base64_table, in base64_encode()
177 char * base64_encode_no_lf(const void *src, size_t len, size_t *out_len) in base64_encode_no_lf() argument
179 return base64_gen_encode(src, len, out_len, base64_table, BASE64_PAD); in base64_encode_no_lf()
183 char * base64_url_encode(const void *src, size_t len, size_t *out_len) in base64_url_encode() argument
[all …]
H A Dbase64.h12 char * base64_encode(const void *src, size_t len, size_t *out_len);
13 char * base64_encode_no_lf(const void *src, size_t len, size_t *out_len);
14 unsigned char * base64_decode(const char *src, size_t len, size_t *out_len);
15 char * base64_url_encode(const void *src, size_t len, size_t *out_len);
16 unsigned char * base64_url_decode(const char *src, size_t len, size_t *out_len);
/freebsd/crypto/openssl/providers/implementations/macs/
H A Dkmac_prov.c121 size_t out_len; member
131 static int encode_string(unsigned char *out, size_t out_max_len, size_t *out_len,
133 static int right_encode(unsigned char *out, size_t out_max_len, size_t *out_len,
135 static int bytepad(unsigned char *out, size_t *out_len,
140 size_t *out_len,
190 kctx->out_len = EVP_MD_get_size(ossl_prov_digest_md(&kctx->digest)); in kmac_fetch_new()
232 dst->out_len = src->out_len; in kmac_dup()
273 size_t out_len, block_len; in kmac_init() local
307 if (!bytepad(NULL, &out_len, kmac_string, sizeof(kmac_string), in kmac_init()
312 out = OPENSSL_malloc(out_len); in kmac_init()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_hmac.c65 __hmac_sha1_final(archive_hmac_sha1_ctx *ctx, uint8_t *out, size_t *out_len) in __hmac_sha1_final() argument
68 *out_len = 20; in __hmac_sha1_final()
136 __hmac_sha1_final(archive_hmac_sha1_ctx *ctx, uint8_t *out, size_t *out_len) in __hmac_sha1_final() argument
139 if (ctx->hash_len == *out_len) in __hmac_sha1_final()
140 memcpy(out, ctx->hash, *out_len); in __hmac_sha1_final()
187 static void __hmac_sha1_final(archive_hmac_sha1_ctx *ctx, uint8_t *out, size_t *out_len) in __hmac_sha1_final() argument
189 (void)out_len; /* UNUSED */ in __hmac_sha1_final()
217 __hmac_sha1_final(archive_hmac_sha1_ctx *ctx, uint8_t *out, size_t *out_len) in __hmac_sha1_final() argument
219 hmac_sha1_digest(ctx, (unsigned)*out_len, out); in __hmac_sha1_final()
270 __hmac_sha1_final(archive_hmac_sha1_ctx *ctx, uint8_t *out, size_t *out_len) in __hmac_sha1_final() argument
[all …]
/freebsd/share/examples/libusb20/
H A Dbulk.c62 uint16_t out_len; variable
123 if (out_len > 0) in doit()
125 if ((rv = libusb20_tr_bulk_intr_sync(xfr_out, out_buf, out_len, &rlen, TIMEOUT)) in doit()
202 for (out_len = 0; argc > 0 && out_len < BUFLEN; out_len++, argc--) in main()
204 unsigned n = strtoul(argv[out_len], 0, 0); in main()
208 out_len, n); in main()
209 out_buf[out_len] = (uint8_t)n; in main()
211 out_len++; in main()
H A Dcontrol.c65 uint16_t out_len; variable
373 for (out_len = 0; argc > 0 && out_len < BUFLEN; out_len++, argc--) in main()
375 unsigned n = strtoul(argv[out_len], 0, 0); in main()
379 out_len, n); in main()
380 out_buf[out_len] = (uint8_t)n; in main()
382 out_len++; in main()
/freebsd/crypto/openssl/demos/mac/
H A Dcmac-aes256.c73 size_t out_len = 0; in main() local
115 if (!EVP_MAC_final(mctx, NULL, &out_len, 0)) { in main()
119 out = OPENSSL_malloc(out_len); in main()
125 if (!EVP_MAC_final(mctx, out, &out_len, out_len)) { in main()
131 BIO_dump_indent_fp(stdout, out, out_len, 2); in main()
134 if (out_len != sizeof(expected_output)) { in main()
H A Dhmac-sha512.c84 size_t out_len = 0; in main() local
126 if (!EVP_MAC_final(mctx, NULL, &out_len, 0)) { in main()
130 out = OPENSSL_malloc(out_len); in main()
136 if (!EVP_MAC_final(mctx, out, &out_len, out_len)) { in main()
142 BIO_dump_indent_fp(stdout, out, out_len, 2); in main()
145 if (out_len != sizeof(expected_output)) { in main()
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dsskdf.c64 size_t out_len; /* optional KMAC parameter */ member
101 size_t counter, out_len, len = derived_key_len; in SSKDF_hash_kdm() local
115 out_len = (size_t)hlen; in SSKDF_hash_kdm()
137 if (len >= out_len) { in SSKDF_hash_kdm()
140 out += out_len; in SSKDF_hash_kdm()
141 len -= out_len; in SSKDF_hash_kdm()
221 size_t counter, out_len, len; in SSKDF_mac_kdm() local
242 out_len = EVP_MAC_CTX_get_mac_size(ctx_init); /* output size */ in SSKDF_mac_kdm()
243 if (out_len <= 0 || (mac == mac_buf && out_len > sizeof(mac_buf))) in SSKDF_mac_kdm()
259 if (len >= out_len) { in SSKDF_mac_kdm()
[all …]
/freebsd/contrib/bearssl/src/mac/
H A Dhmac.c79 const br_hmac_key_context *kc, size_t out_len) in br_hmac_init() argument
90 if (out_len > 0 && out_len < hlen) { in br_hmac_init()
91 hlen = out_len; in br_hmac_init()
93 ctx->out_len = hlen; in br_hmac_init()
120 memcpy(out, tmp, ctx->out_len); in br_hmac_out()
121 return ctx->out_len; in br_hmac_out()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_ucma.c384 int in_len, int out_len) in ucma_get_event() argument
391 if (out_len < sizeof uevent->resp) in ucma_get_event()
460 int in_len, int out_len) in ucma_create_id() argument
469 if (out_len < sizeof(resp)) in ucma_create_id()
584 int in_len, int out_len) in ucma_destroy_id() argument
591 if (out_len < sizeof(resp)) in ucma_destroy_id()
632 int in_len, int out_len) in ucma_bind_ip() argument
654 int in_len, int out_len) in ucma_bind() argument
678 int in_len, int out_len) in ucma_resolve_ip() argument
703 int in_len, int out_len) in ucma_resolve_addr() argument
[all …]
H A Dib_uverbs_std_types_device.c59 ssize_t out_len, in gather_objects_handle() argument
62 u64 max_count = out_len / sizeof(u32); in gather_objects_handle()
70 handles = uverbs_zalloc(attrs, out_len); in gather_objects_handle()
97 ssize_t out_len; in UVERBS_HANDLER() local
103 out_len = uverbs_attr_get_len(attrs, UVERBS_ATTR_INFO_HANDLES_LIST); in UVERBS_HANDLER()
104 if (out_len <= 0 || (out_len % sizeof(u32) != 0)) in UVERBS_HANDLER()
116 out_len, &total); in UVERBS_HANDLER()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dhkdf.c42 uint8_t *out_buf, uint_t out_len) in hkdf_sha512_expand() argument
48 uint_t N = (out_len + SHA512_DIGEST_LENGTH) / SHA512_DIGEST_LENGTH; in hkdf_sha512_expand()
67 (i != N) ? SHA512_DIGEST_LENGTH : (out_len - pos)); in hkdf_sha512_expand()
84 uint_t out_len) in hkdf_sha512() argument
95 out_len); in hkdf_sha512()
/freebsd/contrib/bearssl/src/kdf/
H A Dhkdf.c70 const void *info, size_t info_len, void *out, size_t out_len) in br_hkdf_produce() argument
75 while (out_len > 0) { in br_hkdf_produce()
97 if (clen > out_len) { in br_hkdf_produce()
98 clen = out_len; in br_hkdf_produce()
102 out_len -= clen; in br_hkdf_produce()
/freebsd/crypto/openssl/crypto/modes/
H A Dsiv128.c93 size_t out_len = sizeof(out->byte); in siv128_do_s2v_p() local
117 if (!EVP_MAC_final(mac_ctx, out->byte, &out_len, sizeof(out->byte)) in siv128_do_s2v_p()
118 || out_len != SIV_LEN) in siv128_do_s2v_p()
133 int out_len = (int)len; in siv128_do_encrypt() local
137 return EVP_EncryptUpdate(ctx, out, &out_len, in, out_len); in siv128_do_encrypt()
168 size_t out_len = SIV_LEN; in ossl_siv128_init() local
202 || !EVP_MAC_final(mac_ctx, ctx->d.byte, &out_len, in ossl_siv128_init()
250 size_t out_len = SIV_LEN; in ossl_siv128_aad() local
257 || !EVP_MAC_final(mac_ctx, mac_out.byte, &out_len, in ossl_siv128_aad()
259 || out_len != SIV_LEN) { in ossl_siv128_aad()
/freebsd/sys/contrib/libsodium/test/default/
H A Dxchacha20.c110 size_t out_len; in tv_stream_xchacha20() local
124 tv->out, strlen(tv->out), NULL, &out_len, NULL); in tv_stream_xchacha20()
125 out2 = (unsigned char *) sodium_malloc(out_len); in tv_stream_xchacha20()
126 crypto_stream_xchacha20(out2, out_len, nonce, key); in tv_stream_xchacha20()
127 assert(memcmp(out, out2, out_len) == 0); in tv_stream_xchacha20()
128 crypto_stream_xchacha20_xor(out2, out, out_len, nonce, key); in tv_stream_xchacha20()
129 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20()
130 crypto_stream_xchacha20_xor_ic(out2, out, out_len, nonce, 0, key); in tv_stream_xchacha20()
131 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20()
132 crypto_stream_xchacha20_xor_ic(out2, out, out_len, nonce, 1, key); in tv_stream_xchacha20()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DEVP_PKEY_gettable_params.pod25 size_t *out_len);
28 size_t *out_len);
65 If I<out_len> is not NULL, I<*out_len> is set to the length of the string
67 the terminating NUL byte can be obtained from I<*out_len> by calling the
72 If I<out_len> is not NULL, I<*out_len> is set to the length of the contents.
73 The required buffer size can be obtained from I<*out_len> by calling the
88 value. If I<out_len> is not NULL, I<*out_len> will be assigned the required

12345