Home
last modified time | relevance | path

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

1234

/netbsd-src/crypto/external/bsd/heimdal/dist/lib/wind/
H A Dutf8.c117 wind_utf8ucs4(const char *in, uint32_t *out, size_t *out_len) in wind_utf8ucs4() argument
131 if (o >= *out_len) in wind_utf8ucs4()
137 *out_len = o; in wind_utf8ucs4()
153 wind_utf8ucs4_length(const char *in, size_t *out_len) in wind_utf8ucs4_length() argument
155 return wind_utf8ucs4(in, NULL, out_len); in wind_utf8ucs4_length()
181 wind_ucs4utf8(const uint32_t *in, size_t in_len, char *out, size_t *out_len) in wind_ucs4utf8() argument
203 if (o >= *out_len) in wind_ucs4utf8()
227 if (o + 1 >= *out_len) in wind_ucs4utf8()
231 *out_len = o; in wind_ucs4utf8()
247 wind_ucs4utf8_length(const uint32_t *in, size_t in_len, size_t *out_len) in wind_ucs4utf8_length() argument
[all …]
H A Dldap.c40 put_char(uint32_t *out, size_t *o, uint32_t c, size_t out_len) in put_char() argument
42 if (*o >= out_len) in put_char()
53 size_t *out_len) in _wind_ldap_case_exact_attribute() argument
58 *out_len = 0; in _wind_ldap_case_exact_attribute()
62 if (put_char(out, &o, 0x20, *out_len)) in _wind_ldap_case_exact_attribute()
69 if (put_char(out, &o, 0x20, *out_len) || in _wind_ldap_case_exact_attribute()
70 put_char(out, &o, 0x20, *out_len)) in _wind_ldap_case_exact_attribute()
75 if (put_char(out, &o, tmp[i++], *out_len)) in _wind_ldap_case_exact_attribute()
88 put_char(out, &o, 0x20, *out_len); in _wind_ldap_case_exact_attribute()
90 *out_len = o; in _wind_ldap_case_exact_attribute()
H A Dtest-map.c52 size_t out_len; member
67 size_t out_len = c->out_len; in try() local
68 uint32_t *tmp = malloc(out_len * sizeof(uint32_t)); in try()
69 if (tmp == NULL && out_len != 0) in try()
71 ret = _wind_stringprep_map(c->in, c->in_len, tmp, &out_len, WIND_PROFILE_NAME); in try()
76 if (out_len != c->out_len) { in try()
81 if (memcmp(c->out, tmp, out_len * sizeof(uint32_t)) != 0) { in try()
H A Dnormalize.c71 uint32_t *out, size_t *out_len) in hangul_decomp() argument
87 if (*out_len < o) in hangul_decomp()
93 *out_len = o; in hangul_decomp()
126 uint32_t *out, size_t *out_len) in compat_decomp() argument
133 size_t sub_len = *out_len - o; in compat_decomp()
158 if (o >= *out_len) in compat_decomp()
165 *out_len = o; in compat_decomp()
253 uint32_t *out, size_t *out_len) in combine() argument
265 if (o >= *out_len) in combine()
285 if (o >= *out_len) in combine()
[all …]
H A Dpunycode.c92 char *out, size_t *out_len) in wind_punycode_label_toascii() argument
106 if (o >= *out_len) in wind_punycode_label_toascii()
113 if (o >= *out_len) in wind_punycode_label_toascii()
119 if (o + 4 >= *out_len) in wind_punycode_label_toascii()
150 if (o >= *out_len) in wind_punycode_label_toascii()
155 if (o >= *out_len) in wind_punycode_label_toascii()
168 *out_len = o; in wind_punycode_label_toascii()
H A Dstringprep.c59 uint32_t *out, size_t *out_len, in wind_stringprep() argument
68 *out_len = 0; in wind_stringprep()
82 olen = *out_len; in wind_stringprep()
101 ret = _wind_ldap_case_exact_attribute(tmp, olen, out, out_len); in wind_stringprep()
109 *out_len = olen; in wind_stringprep()
H A Dtest-normalize.c92 size_t out_len; in test() local
109 out_len = parse_vector(c, out); in test()
124 if (out_len != norm_len) { in test()
126 dump_vector("Expected", out, out_len); in test()
131 if (memcmp(out, tmp, out_len * sizeof(uint32_t)) != 0) { in test()
133 dump_vector("Expected", out, out_len); in test()
H A Dmap.c56 uint32_t *out, size_t *out_len, in _wind_stringprep_map() argument
74 if (o >= *out_len) in _wind_stringprep_map()
79 if (o >= *out_len) in _wind_stringprep_map()
85 *out_len = o; in _wind_stringprep_map()
/netbsd-src/crypto/external/bsd/openssl/dist/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 …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/trspi/crypto/openssl/
H A Dsymmetric.c51 UINT32 *out_len) in Trspi_Encrypt_ECB() argument
74 if (*out_len < in_len + EVP_CIPHER_CTX_block_size(ctx) - 1) { in Trspi_Encrypt_ECB()
79 if (!EVP_EncryptUpdate(ctx, out, (int *)out_len, in, in_len)) { in Trspi_Encrypt_ECB()
85 if (!EVP_EncryptFinal(ctx, out + *out_len, (int *)&tmp)) { in Trspi_Encrypt_ECB()
90 *out_len += tmp; in Trspi_Encrypt_ECB()
98 UINT32 *out_len) in Trspi_Decrypt_ECB() argument
121 if (!EVP_DecryptUpdate(ctx, out, (int *)out_len, in, in_len)) { in Trspi_Decrypt_ECB()
127 if (!EVP_DecryptFinal(ctx, out + *out_len, (int *)&tmp)) { in Trspi_Decrypt_ECB()
132 *out_len += tmp; in Trspi_Decrypt_ECB()
254 UINT32 *out_len) in Trspi_SymEncrypt() argument
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/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 …]
/netbsd-src/crypto/external/bsd/openssl/dist/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()
H A Dgmac.c66 size_t out_len = 0; in main() local
118 if (!EVP_MAC_final(mctx, out, &out_len, sizeof(out))) { in main()
124 BIO_dump_indent_fp(stdout, out, out_len, 2); in main()
127 if (out_len != sizeof(expected_output)) { in main()
H A Dsiphash.c54 size_t out_len = 0; in main() local
102 if (!EVP_MAC_final(mctx, out, &out_len, sizeof(out))) { in main()
108 BIO_dump_indent_fp(stdout, out, out_len, 2); in main()
111 if (out_len != sizeof(expected_output)) { in main()
H A Dpoly1305.c94 size_t out_len = 0; in main() local
180 if (!EVP_MAC_final(mctx, out, &out_len, sizeof(out))) { in main()
186 BIO_dump_indent_fp(stdout, out, out_len, 2); in main()
189 if (out_len != sizeof(expected_output)) { in main()
/netbsd-src/external/bsd/liblzf/dist/cs/
H A DCLZF.cs153 public int lzf_compress (byte[] in_data, int in_len,byte[] out_data, int out_len) in lzf_compress() argument
195 if (oidx + lit + 1 + 3 >= out_len) in lzf_compress()
248 if (oidx + 1 + MAX_LIT >= out_len) in lzf_compress()
261 if (oidx + lit + 1 >= out_len) in lzf_compress()
277 public int lzf_decompress ( byte[] in_data, int in_len, byte[] out_data, int out_len) in lzf_decompress() argument
290 if (oidx + ctrl > out_len) in lzf_decompress()
311 if (oidx + len + 2 > out_len) in lzf_decompress()
/netbsd-src/crypto/external/bsd/openssl/dist/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()
/netbsd-src/sys/external/isc/libsodium/dist/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 …]
/netbsd-src/crypto/external/bsd/openssl/dist/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
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/bn/
H A Drsaz_exp_x2.c46 static ossl_inline void put_digit52(uint8_t *out, int out_len, uint64_t digit);
47 static void to_words52(BN_ULONG *out, int out_len, const BN_ULONG *in,
458 static void to_words52(BN_ULONG *out, int out_len,
466 assert(out_len >= number_of_digits(in_bitsize, DIGIT_SIZE));
479 out_len -= 2;
491 out_len -= 2;
495 out_len--;
498 while (out_len > 0) {
500 out_len--;
522 int out_len = BITS2WORD64_SIZE(out_bitsize);
[all …]
/netbsd-src/external/bsd/wpa/dist/src/tls/
H A Dtlsv1_record.c152 size_t *out_len) in tlsv1_record_send() argument
257 *out_len = pos - buf; in tlsv1_record_send()
280 u8 *out_data, size_t *out_len, u8 *alert) in tlsv1_record_receive() argument
348 if (*out_len < in_len) { in tlsv1_record_receive()
468 *out_len = plen; in tlsv1_record_receive()
471 *out_len = in_len; in tlsv1_record_receive()
475 if (TLS_RECORD_HEADER_LEN + *out_len > 17408) { in tlsv1_record_receive()
477 (unsigned long) (TLS_RECORD_HEADER_LEN + *out_len)); in tlsv1_record_receive()
H A Dtlsv1_server.h23 int server_random_first, u8 *out, size_t out_len);
25 const u8 *in_data, size_t in_len, size_t *out_len);
28 u8 *out_data, size_t out_len);
31 u8 *out_data, size_t out_len);
H A Dtlsv1_server.c134 size_t *out_len) in tlsv1_server_handshake() argument
192 msg = tlsv1_server_handshake_write(conn, out_len); in tlsv1_server_handshake()
207 out_len); in tlsv1_server_handshake()
229 u8 *out_data, size_t out_len) in tlsv1_server_encrypt() argument
237 out_data, out_len, in_data, in_len, &rlen) < 0) { in tlsv1_server_encrypt()
262 u8 *out_data, size_t out_len) in tlsv1_server_decrypt() argument
272 out_end = out_data + out_len; in tlsv1_server_decrypt()
475 int server_random_first, u8 *out, size_t out_len) in tlsv1_server_prf() argument
513 label, seed, seed_len, out, out_len); in tlsv1_server_prf()
/netbsd-src/crypto/external/bsd/heimdal/dist/kdc/
H A Dpkinit-ec.c275 size_t *out_len) in serialize_ecdh_key() argument
282 *out_len = 0; in serialize_ecdh_key()
303 *out_len = len * 8; in serialize_ecdh_key()
312 size_t *out_len) in _kdc_serialize_ecdh_key() argument
315 return serialize_ecdh_key(context, key, out, out_len); in _kdc_serialize_ecdh_key()

1234