Home
last modified time | relevance | path

Searched refs:output_len (Results 1 - 25 of 43) sorted by relevance

12

/third_party/mbedtls/programs/psa/
H A Dcrypto_examples.c67 size_t *output_len) in cipher_operation()
72 *output_len = 0; in cipher_operation()
79 bytes_to_write, output + *output_len, in cipher_operation()
80 output_size - *output_len, &len); in cipher_operation()
84 *output_len += len; in cipher_operation()
87 status = psa_cipher_finish(operation, output + *output_len, in cipher_operation()
88 output_size - *output_len, &len); in cipher_operation()
90 *output_len += len; in cipher_operation()
105 size_t *output_len) in cipher_encrypt()
119 output, output_size, output_len); in cipher_encrypt()
61 cipher_operation(psa_cipher_operation_t *operation, const uint8_t *input, size_t input_size, size_t part_size, uint8_t *output, size_t output_size, size_t *output_len) cipher_operation() argument
96 cipher_encrypt(psa_key_id_t key, psa_algorithm_t alg, uint8_t *iv, size_t iv_size, const uint8_t *input, size_t input_size, size_t part_size, uint8_t *output, size_t output_size, size_t *output_len) cipher_encrypt() argument
127 cipher_decrypt(psa_key_id_t key, psa_algorithm_t alg, const uint8_t *iv, size_t iv_size, const uint8_t *input, size_t input_size, size_t part_size, uint8_t *output, size_t output_size, size_t *output_len) cipher_decrypt() argument
170 size_t output_len = 0; cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local
220 size_t output_len = 0; cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
267 size_t output_len = 0; cipher_example_encrypt_decrypt_aes_ctr_multi() local
[all...]
/third_party/mbedtls/library/
H A Dssl_client.c446 size_t output_len; /* Length of buffer used by function */ in ssl_write_client_hello_body() local
546 &output_len); in ssl_write_client_hello_body()
550 p += output_len; in ssl_write_client_hello_body()
580 ret = ssl_write_hostname_ext(ssl, p, end, &output_len); in ssl_write_client_hello_body()
584 p += output_len; in ssl_write_client_hello_body()
588 ret = ssl_write_alpn_ext(ssl, p, end, &output_len); in ssl_write_client_hello_body()
592 p += output_len; in ssl_write_client_hello_body()
598 &output_len); in ssl_write_client_hello_body()
602 p += output_len; in ssl_write_client_hello_body()
626 &output_len); in ssl_write_client_hello_body()
[all...]
H A Dpsa_crypto_invasive.h80 uint8_t *output, size_t output_len);
87 extern void (*psa_output_pre_copy_hook)(const uint8_t *output, size_t output_len);
88 extern void (*psa_output_post_copy_hook)(const uint8_t *output, size_t output_len);
H A Dpkcs12.c128 size_t *output_len);
138 size_t output_len = 0; in mbedtls_pkcs12_pbe() local
146 &output_len); in mbedtls_pkcs12_pbe()
155 size_t *output_len) in mbedtls_pkcs12_pbe_ext()
233 *output_len += finish_olen; in mbedtls_pkcs12_pbe_ext()
150 mbedtls_pkcs12_pbe_ext(mbedtls_asn1_buf *pbe_params, int mode, mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type, const unsigned char *pwd, size_t pwdlen, const unsigned char *data, size_t len, unsigned char *output, size_t output_size, size_t *output_len) mbedtls_pkcs12_pbe_ext() argument
H A Dcipher.c830 static void add_pkcs_padding(unsigned char *output, size_t output_len, in add_pkcs_padding() argument
833 size_t padding_len = output_len - data_len; in add_pkcs_padding()
875 size_t output_len, size_t data_len) in add_one_and_zeros_padding()
877 size_t padding_len = output_len - data_len; in add_one_and_zeros_padding()
919 size_t output_len, size_t data_len) in add_zeros_and_len_padding()
921 size_t padding_len = output_len - data_len; in add_zeros_and_len_padding()
927 output[output_len - 1] = (unsigned char) padding_len; in add_zeros_and_len_padding()
966 size_t output_len, size_t data_len) in add_zeros_padding()
968 memset(output + data_len, 0, output_len - data_len); in add_zeros_padding()
1586 unsigned char *output, size_t output_len, in mbedtls_cipher_auth_encrypt_ext()
874 add_one_and_zeros_padding(unsigned char *output, size_t output_len, size_t data_len) add_one_and_zeros_padding() argument
918 add_zeros_and_len_padding(unsigned char *output, size_t output_len, size_t data_len) add_zeros_and_len_padding() argument
965 add_zeros_padding(unsigned char *output, size_t output_len, size_t data_len) add_zeros_padding() argument
1582 mbedtls_cipher_auth_encrypt_ext(mbedtls_cipher_context_t *ctx, const unsigned char *iv, size_t iv_len, const unsigned char *ad, size_t ad_len, const unsigned char *input, size_t ilen, unsigned char *output, size_t output_len, size_t *olen, size_t tag_len) mbedtls_cipher_auth_encrypt_ext() argument
1633 mbedtls_cipher_auth_decrypt_ext(mbedtls_cipher_context_t *ctx, const unsigned char *iv, size_t iv_len, const unsigned char *ad, size_t ad_len, const unsigned char *input, size_t ilen, unsigned char *output, size_t output_len, size_t *olen, size_t tag_len) mbedtls_cipher_auth_decrypt_ext() argument
[all...]
H A Dssl_tls13_server.c2259 size_t output_len; in ssl_tls13_write_server_hello_body() local
2342 ssl, p, end, &output_len)) != 0) { in ssl_tls13_write_server_hello_body()
2347 p += output_len; in ssl_tls13_write_server_hello_body()
2351 ret = ssl_tls13_write_hrr_key_share_ext(ssl, p, end, &output_len); in ssl_tls13_write_server_hello_body()
2353 ret = ssl_tls13_write_key_share_ext(ssl, p, end, &output_len); in ssl_tls13_write_server_hello_body()
2358 p += output_len; in ssl_tls13_write_server_hello_body()
2363 ret = ssl_tls13_write_server_pre_shared_key_ext(ssl, p, end, &output_len); in ssl_tls13_write_server_hello_body()
2369 p += output_len; in ssl_tls13_write_server_hello_body()
2542 size_t output_len; in ssl_tls13_write_encrypted_extensions_body() local
2552 ((void) output_len); in ssl_tls13_write_encrypted_extensions_body()
2689 size_t output_len = 0; ssl_tls13_write_certificate_request_body() local
3361 size_t output_len; ssl_tls13_write_new_session_ticket_body() local
[all...]
H A Dctr_drbg.c591 * mbedtls_ctr_drbg_random_with_add(ctx, output, output_len, additional, add_len)
601 * requested_number_of_bits = 8 * output_len
606 * returned_bits = output[:output_len]
610 unsigned char *output, size_t output_len, in mbedtls_ctr_drbg_random_with_add()
622 if (output_len > MBEDTLS_CTR_DRBG_MAX_REQUEST) { in mbedtls_ctr_drbg_random_with_add()
649 while (output_len > 0) { in mbedtls_ctr_drbg_random_with_add()
675 use_len = (output_len > MBEDTLS_CTR_DRBG_BLOCKSIZE) in mbedtls_ctr_drbg_random_with_add()
676 ? MBEDTLS_CTR_DRBG_BLOCKSIZE : output_len; in mbedtls_ctr_drbg_random_with_add()
682 output_len -= use_len; in mbedtls_ctr_drbg_random_with_add()
697 size_t output_len) in mbedtls_ctr_drbg_random()
609 mbedtls_ctr_drbg_random_with_add(void *p_rng, unsigned char *output, size_t output_len, const unsigned char *additional, size_t add_len) mbedtls_ctr_drbg_random_with_add() argument
696 mbedtls_ctr_drbg_random(void *p_rng, unsigned char *output, size_t output_len) mbedtls_ctr_drbg_random() argument
[all...]
H A Dpkcs5.c109 size_t *output_len);
118 size_t output_len = 0; in mbedtls_pkcs5_pbes2() local
125 datalen, output, SIZE_MAX, &output_len); in mbedtls_pkcs5_pbes2()
133 size_t *output_len) in mbedtls_pkcs5_pbes2_ext()
257 data, datalen, output, output_len)) != 0) { in mbedtls_pkcs5_pbes2_ext()
129 mbedtls_pkcs5_pbes2_ext(const mbedtls_asn1_buf *pbe_params, int mode, const unsigned char *pwd, size_t pwdlen, const unsigned char *data, size_t datalen, unsigned char *output, size_t output_size, size_t *output_len) mbedtls_pkcs5_pbes2_ext() argument
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Dsha1-tprf.c36 u8 output_len[2]; in sha1_t_prf() local
46 addr[3] = output_len; in sha1_t_prf()
51 output_len[0] = (buf_len >> 8) & 0xff; in sha1_t_prf()
52 output_len[1] = buf_len & 0xff; in sha1_t_prf()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Dsha1-tprf.c36 u8 output_len[2]; in sha1_t_prf() local
46 addr[3] = output_len; in sha1_t_prf()
51 output_len[0] = (buf_len >> 8) & 0xff; in sha1_t_prf()
52 output_len[1] = buf_len & 0xff; in sha1_t_prf()
/third_party/openssl/test/
H A Devp_test.c335 size_t output_len; member
383 return parse_bin(value, &mdata->output, &mdata->output_len); in digest_test_parse()
413 got = OPENSSL_malloc(expected->output_len > EVP_MAX_MD_SIZE ? in digest_test_run()
414 expected->output_len : EVP_MAX_MD_SIZE); in digest_test_run()
460 got_len = expected->output_len; in digest_test_run()
471 if (!TEST_int_eq(expected->output_len, got_len)) { in digest_test_run()
476 expected->output, expected->output_len, in digest_test_run()
494 expected->output, expected->output_len)) { in digest_test_run()
1127 size_t output_len; member
1246 return parse_bin(value, &mdata->output, &mdata->output_len); in mac_test_parse()
1672 size_t output_len; global() member
2255 size_t output_len; global() member
2311 int output_len, chunk_len; encode_test_run() local
2403 pr_entropyA_len, pr_entropyB_len, output_len, reseed_entropy_len, global() member
2678 size_t output_len; global() member
2827 size_t output_len; global() member
3182 size_t output_len; /* Expected output length */ global() member
[all...]
/third_party/mbedtls/programs/fuzz/
H A Dcommon.c59 int dummy_random(void *p_rng, unsigned char *output, size_t output_len) in dummy_random() argument
68 ret = mbedtls_ctr_drbg_random(p_rng, output, output_len); in dummy_random()
77 for (i = 0; i < output_len; i++) { in dummy_random()
H A Dcommon.h22 int dummy_random(void *p_rng, unsigned char *output, size_t output_len);
/third_party/glslang/glslang/OSDependent/Web/
H A Dglslang.js.cpp288 size_t output_len; in main() local
290 void* id = convert_glsl_to_spirv(input, 4, false, glslang::EShTargetSpv_1_0, &output, &output_len); in main()
292 assert(output_len != 0); in main()
H A Dglslang.pre.js33 var output_len = getValue(p_output_len, 'i32');
43 ret['data'] = Module['HEAPU32'].subarray(outputIndexU32, outputIndexU32 + output_len);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
H A Deap_pax_common.c24 * @output_len: Output len in bytes (W)
33 size_t output_len, u8 *output) in eap_pax_kdf()
41 num_blocks = (output_len + EAP_PAX_MAC_LEN - 1) / EAP_PAX_MAC_LEN; in eap_pax_kdf()
57 left = output_len; in eap_pax_kdf()
30 eap_pax_kdf(u8 mac_id, const u8 *key, size_t key_len, const char *identifier, const u8 *entropy, size_t entropy_len, size_t output_len, u8 *output) eap_pax_kdf() argument
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
H A Deap_pax_common.c24 * @output_len: Output len in bytes (W)
33 size_t output_len, u8 *output) in eap_pax_kdf()
41 num_blocks = (output_len + EAP_PAX_MAC_LEN - 1) / EAP_PAX_MAC_LEN; in eap_pax_kdf()
57 left = output_len; in eap_pax_kdf()
30 eap_pax_kdf(u8 mac_id, const u8 *key, size_t key_len, const char *identifier, const u8 *entropy, size_t entropy_len, size_t output_len, u8 *output) eap_pax_kdf() argument
/third_party/skia/third_party/externals/libpng/
H A Dpngwutil.c473 png_uint_32 output_len; /* Final compressed length */ member
483 comp->output_len = 0; in png_text_compress_init()
517 png_uint_32 output_len; in png_text_compress() local
525 output_len = png_ptr->zstream.avail_out; in png_text_compress()
545 if (output_len + prefix_len > PNG_UINT_31_MAX) in png_text_compress()
573 output_len += png_ptr->zstream.avail_out; in png_text_compress()
592 * be subtracted from output_len. in png_text_compress()
594 output_len -= png_ptr->zstream.avail_out; in png_text_compress()
596 comp->output_len = output_len; in png_text_compress()
639 png_uint_32 output_len = comp->output_len; png_write_compressed_data_out() local
[all...]
/third_party/skia/third_party/externals/freetype/src/gzip/
H A Dftgzip.c729 FT_ULong* output_len, in FT_EXPORT_DEF()
739 if ( !memory || !output_len || !output ) in FT_EXPORT_DEF()
748 stream.avail_out = (uInt)*output_len; in FT_EXPORT_DEF()
777 *output_len = stream.total_out; in FT_EXPORT_DEF()
811 FT_ULong* output_len, in FT_EXPORT_DEF()
817 FT_UNUSED( output_len ); in FT_EXPORT_DEF()
/third_party/mbedtls/include/mbedtls/
H A Dctr_drbg.h488 * \param output_len The length of the buffer in bytes.
505 unsigned char *output, size_t output_len,
526 * \param output_len The length of the buffer in bytes.
533 unsigned char *output, size_t output_len);
/third_party/mbedtls/tests/src/test_helpers/
H A Dssl_helpers.c15 int mbedtls_test_random(void *p_rng, unsigned char *output, size_t output_len) in mbedtls_test_random() argument
18 for (size_t i = 0; i < output_len; i++) { in mbedtls_test_random()
182 unsigned char *output, size_t output_len) in mbedtls_test_ssl_buffer_get()
190 if (output == NULL && output_len == 0) { in mbedtls_test_ssl_buffer_get()
194 if (buf->content_length < output_len) { in mbedtls_test_ssl_buffer_get()
195 output_len = buf->content_length; in mbedtls_test_ssl_buffer_get()
200 if (buf->start + output_len > buf->capacity) { in mbedtls_test_ssl_buffer_get()
201 overflow = (buf->start + output_len) % buf->capacity; in mbedtls_test_ssl_buffer_get()
205 memcpy(output, buf->buffer + buf->start, output_len - overflow); in mbedtls_test_ssl_buffer_get()
206 memcpy(output + output_len in mbedtls_test_ssl_buffer_get()
181 mbedtls_test_ssl_buffer_get(mbedtls_test_ssl_buffer *buf, unsigned char *output, size_t output_len) mbedtls_test_ssl_buffer_get() argument
[all...]
/third_party/mbedtls/programs/test/
H A Dselftest.c217 size_t output_len = 0; in create_entropy_seed_file() local
231 &output_len); in create_entropy_seed_file()
236 if (MBEDTLS_ENTROPY_BLOCK_SIZE != output_len) { in create_entropy_seed_file()
/third_party/skia/third_party/externals/freetype/src/sfnt/
H A Dsfwoff.c367 FT_ULong output_len = table->OrigLength; in FT_LOCAL_DEF() local
371 sfnt + table->OrigOffset, &output_len, in FT_LOCAL_DEF()
375 if ( output_len != table->OrigLength ) in FT_LOCAL_DEF()
/third_party/mbedtls/programs/ssl/
H A Dssl_test_lib.c164 int rng_get(void *p_rng, unsigned char *output, size_t output_len) in rng_get() argument
169 output, output_len); in rng_get()
174 return mbedtls_ctr_drbg_random(&rng->drbg, output, output_len); in rng_get()
176 return mbedtls_hmac_drbg_random(&rng->drbg, output, output_len); in rng_get()
/third_party/skia/third_party/externals/freetype/include/freetype/
H A Dftgzip.h119 * output_len ::
123 * advance). After calling the function, `output_len` is the size of
139 FT_ULong* output_len,

Completed in 23 milliseconds

12