/optee_os-3.20.0/core/tee/ |
A D | tee_fs_rpc.c | 113 size_t data_len, void **out_data) in tee_fs_rpc_read_init() argument 123 data_len, &mobj); in tee_fs_rpc_read_init() 131 [1] = THREAD_PARAM_MEMREF(OUT, mobj, 0, data_len), in tee_fs_rpc_read_init() 141 size_t *data_len) in tee_fs_rpc_read_final() argument 146 *data_len = op->params[1].u.memref.size; in tee_fs_rpc_read_final() 152 size_t data_len, void **data) in tee_fs_rpc_write_init() argument 162 data_len, &mobj); in tee_fs_rpc_write_init() 170 [1] = THREAD_PARAM_MEMREF(IN, mobj, 0, data_len), in tee_fs_rpc_write_init()
|
A D | tee_svc_cryp.c | 732 if ((*offs + s) > data_len) in op_attr_secret_value_from_binary() 844 if ((*offs + n) > data_len) in op_attr_bignum_from_binary() 1008 if (*offs + s > data_len) in op_attr_25519_from_binary() 1280 size_t *data_len) in tee_obj_attr_to_binary() argument 1289 *data_len = 0; in tee_obj_attr_to_binary() 1307 *data_len = offs; in tee_obj_attr_to_binary() 1314 size_t data_len) in tee_obj_attr_from_binary() argument 4280 data, data_len, sig, in syscall_asymm_verify() 4290 if (data_len != hash_size) { in syscall_asymm_verify() 4323 data_len, sig, sig_len); in syscall_asymm_verify() [all …]
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_fs_rpc.h | 36 size_t data_len, void **out_data); 38 size_t *data_len); 42 size_t data_len, void **data);
|
A D | tee_svc_cryp.h | 82 size_t num_params, const void *data, size_t data_len, 91 size_t *data_len); 93 size_t data_len);
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | ssl_msg.c | 841 if( rec->data_len != olen ) in mbedtls_ssl_encrypt_buf() 919 &rec->data_len, in mbedtls_ssl_encrypt_buf() 1025 if( rec->data_len != olen ) in mbedtls_ssl_encrypt_buf() 1182 if( rec->data_len != olen ) in mbedtls_ssl_decrypt_buf() 1290 if( olen != rec->data_len ) in mbedtls_ssl_decrypt_buf() 1456 if( rec->data_len != olen ) in mbedtls_ssl_decrypt_buf() 1551 size_t const num_checks = rec->data_len <= 256 ? rec->data_len : 256; in mbedtls_ssl_decrypt_buf() 1585 rec->data_len -= padlen; in mbedtls_ssl_decrypt_buf() 3680 if( rec->data_len == 0 ) in ssl_parse_record_header() 3848 if( rec->data_len == 0 ) in ssl_prepare_record_content() [all …]
|
A D | cipher.c | 780 size_t data_len ) in add_pkcs_padding() argument 790 size_t *data_len ) in get_pkcs_padding() argument 795 if( NULL == input || NULL == data_len ) in get_pkcs_padding() 799 *data_len = input_len - padding_len; in get_pkcs_padding() 825 output[data_len] = 0x80; in add_one_and_zeros_padding() 827 output[data_len + i] = 0x00; in add_one_and_zeros_padding() 840 *data_len = 0; in get_one_and_zeros_padding() 865 output[data_len + i - 1] = 0x00; in add_zeros_and_len_padding() 879 *data_len = input_len - padding_len; in get_zeros_and_len_padding() 916 *data_len = 0; in get_zeros_padding() [all …]
|
A D | pkcs12.c | 231 static void pkcs12_fill_buffer( unsigned char *data, size_t data_len, in pkcs12_fill_buffer() argument 239 while( data_len > 0 ) in pkcs12_fill_buffer() 241 use_len = ( data_len > fill_len ) ? fill_len : data_len; in pkcs12_fill_buffer() 244 data_len -= use_len; in pkcs12_fill_buffer()
|
A D | ctr_drbg.c | 126 const unsigned char *data, size_t data_len ) in block_cipher_df() argument 140 if( data_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in block_cipher_df() 155 MBEDTLS_PUT_UINT32_BE( data_len, p, 0); in block_cipher_df() 158 memcpy( p, data, data_len ); in block_cipher_df() 159 p[data_len] = 0x80; in block_cipher_df() 161 buf_len = MBEDTLS_CTR_DRBG_BLOCKSIZE + 8 + data_len + 1; in block_cipher_df()
|
A D | chacha20.c | 308 size_t data_len, in mbedtls_chacha20_crypt() argument 317 CHACHA20_VALIDATE_RET( data_len == 0 || input != NULL ); in mbedtls_chacha20_crypt() 318 CHACHA20_VALIDATE_RET( data_len == 0 || output != NULL ); in mbedtls_chacha20_crypt() 330 ret = mbedtls_chacha20_update( &ctx, data_len, input, output ); in mbedtls_chacha20_crypt()
|
A D | hmac_drbg.c | 121 const unsigned char *data, size_t data_len ) in mbedtls_hmac_drbg_seed_buf() argument 142 if( ( ret = mbedtls_hmac_drbg_update_ret( ctx, data, data_len ) ) != 0 ) in mbedtls_hmac_drbg_seed_buf()
|
A D | ecp.c | 1017 unsigned char data_len; in mbedtls_ecp_tls_read_point() local 1030 data_len = *(*buf)++; in mbedtls_ecp_tls_read_point() 1031 if( data_len < 1 || data_len > buf_len - 1 ) in mbedtls_ecp_tls_read_point() 1038 *buf += data_len; in mbedtls_ecp_tls_read_point() 1040 return( mbedtls_ecp_point_read_binary( grp, pt, buf_start, data_len ) ); in mbedtls_ecp_tls_read_point()
|
A D | ssl_tls.c | 7533 unsigned char *data, size_t data_len ) in mbedtls_ssl_get_key_exchange_md_ssl_tls() argument 7566 if( ( ret = mbedtls_md5_update_ret( &mbedtls_md5, data, data_len ) ) != 0 ) in mbedtls_ssl_get_key_exchange_md_ssl_tls() 7589 data_len ) ) != 0 ) in mbedtls_ssl_get_key_exchange_md_ssl_tls() 7621 unsigned char *data, size_t data_len, in mbedtls_ssl_get_key_exchange_md_tls1_2() argument 7645 data, data_len ) ) != PSA_SUCCESS ) in mbedtls_ssl_get_key_exchange_md_tls1_2() 7683 unsigned char *data, size_t data_len, in mbedtls_ssl_get_key_exchange_md_tls1_2() argument 7717 if( ( ret = mbedtls_md_update( &ctx, data, data_len ) ) != 0 ) in mbedtls_ssl_get_key_exchange_md_tls1_2()
|
/optee_os-3.20.0/core/pta/tests/ |
A D | fs_htree.c | 25 size_t data_len; member 125 if (offs + sz <= a->data_len) in test_read_final() 127 else if (offs <= a->data_len) in test_read_final() 128 *bytes = a->data_len - offs; in test_read_final() 156 if (end > a->data_len) in test_write_final() 157 a->data_len = end; in test_write_final() 266 aux->data_len = 0; in htree_test_rewrite() 487 memcpy(aux2.data, aux->data, aux->data_len); in test_corrupt_type() 571 aux->data_len = 0; in test_corrupt()
|
/optee_os-3.20.0/core/pta/ |
A D | system.c | 62 size_t data_len = sizeof(TEE_UUID); in system_derive_ta_unique_key() local 96 if (ADD_OVERFLOW(data_len, params[0].memref.size, &data_len)) in system_derive_ta_unique_key() 99 data = calloc(data_len, 1); in system_derive_ta_unique_key() 109 res = huk_subkey_derive(HUK_SUBKEY_UNIQUE_TA, data, data_len, in system_derive_ta_unique_key()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | hmac_drbg.h | 239 const unsigned char *data, size_t data_len );
|
A D | ssl_internal.h | 561 size_t data_len; member 865 size_t data_len; /* Length of record content */ member 1267 unsigned char *data, size_t data_len ); 1277 unsigned char *data, size_t data_len,
|
A D | cipher.h | 335 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len ); 336 int (*get_padding)( unsigned char *input, size_t ilen, size_t *data_len );
|
/optee_os-3.20.0/lib/libutee/include/ |
A D | utee_syscalls.h | 161 size_t data_len, const void *sig, size_t sig_len);
|