/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | ssl_msg.c | 781 if( rec->data_len != olen ) in mbedtls_ssl_encrypt_buf() 859 &rec->data_len, in mbedtls_ssl_encrypt_buf() 914 rec->data_len += padlen + 1; in mbedtls_ssl_encrypt_buf() 965 if( rec->data_len != olen ) in mbedtls_ssl_encrypt_buf() 1342 if( rec->data_len != olen ) in mbedtls_ssl_decrypt_buf() 1450 if( olen != rec->data_len ) in mbedtls_ssl_decrypt_buf() 1598 if( rec->data_len != olen ) in mbedtls_ssl_decrypt_buf() 1693 size_t const num_checks = rec->data_len <= 256 ? rec->data_len : 256; in mbedtls_ssl_decrypt_buf() 1727 rec->data_len -= padlen; in mbedtls_ssl_decrypt_buf() 3776 if( rec->data_len == 0 ) in ssl_parse_record_header() [all …]
|
A D | cipher.c | 789 size_t data_len ) in add_pkcs_padding() argument 799 size_t *data_len ) in get_pkcs_padding() argument 804 if( NULL == input || NULL == data_len ) in get_pkcs_padding() 808 *data_len = input_len - padding_len; in get_pkcs_padding() 834 output[data_len] = 0x80; in add_one_and_zeros_padding() 836 output[data_len + i] = 0x00; in add_one_and_zeros_padding() 849 *data_len = 0; in get_one_and_zeros_padding() 874 output[data_len + i - 1] = 0x00; in add_zeros_and_len_padding() 888 *data_len = input_len - padding_len; in get_zeros_and_len_padding() 925 *data_len = 0; in get_zeros_padding() [all …]
|
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 *p++ = ( data_len >> 24 ) & 0xff; in block_cipher_df() 156 *p++ = ( data_len >> 16 ) & 0xff; in block_cipher_df() 157 *p++ = ( data_len >> 8 ) & 0xff; in block_cipher_df() 158 *p++ = ( data_len ) & 0xff; in block_cipher_df() 161 memcpy( p, data, data_len ); in block_cipher_df() 162 p[data_len] = 0x80; in block_cipher_df() 164 buf_len = MBEDTLS_CTR_DRBG_BLOCKSIZE + 8 + data_len + 1; in block_cipher_df()
|
A D | pkcs12.c | 228 static void pkcs12_fill_buffer( unsigned char *data, size_t data_len, in pkcs12_fill_buffer() argument 234 while( data_len > 0 ) in pkcs12_fill_buffer() 236 use_len = ( data_len > fill_len ) ? fill_len : data_len; in pkcs12_fill_buffer() 239 data_len -= use_len; in pkcs12_fill_buffer()
|
A D | chacha20.c | 318 size_t data_len, in mbedtls_chacha20_crypt() argument 327 CHACHA20_VALIDATE_RET( data_len == 0 || input != NULL ); in mbedtls_chacha20_crypt() 328 CHACHA20_VALIDATE_RET( data_len == 0 || output != NULL ); in mbedtls_chacha20_crypt() 340 ret = mbedtls_chacha20_update( &ctx, data_len, input, output ); in mbedtls_chacha20_crypt()
|
/optee_os/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 | 628 if ((*offs + s) > data_len) in op_attr_secret_value_from_binary() 738 if ((*offs + n) > data_len) in op_attr_bignum_from_binary() 1048 size_t *data_len) in tee_obj_attr_to_binary() argument 1057 *data_len = 0; in tee_obj_attr_to_binary() 1075 *data_len = offs; in tee_obj_attr_to_binary() 1082 size_t data_len) in tee_obj_attr_from_binary() argument 3761 if (data_len != hash_size) { in syscall_asymm_verify() 3769 data, data_len, sig, in syscall_asymm_verify() 3779 if (data_len != hash_size) { in syscall_asymm_verify() 3812 data_len, sig, sig_len); in syscall_asymm_verify() [all …]
|
/optee_os/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 | 81 size_t num_params, const void *data, size_t data_len, 90 size_t *data_len); 92 size_t data_len);
|
/optee_os/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/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/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | ssl_internal.h | 548 size_t data_len; member 846 size_t data_len; /* Length of record content */ member 1239 unsigned char *data, size_t data_len ); 1248 unsigned char *data, size_t data_len,
|
A D | hmac_drbg.h | 235 const unsigned char *data, size_t data_len );
|
A D | cipher.h | 327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len ); 328 int (*get_padding)( unsigned char *input, size_t ilen, size_t *data_len );
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | ssl_internal.h | 548 size_t data_len; member 846 size_t data_len; /* Length of record content */ member 1239 unsigned char *data, size_t data_len ); 1248 unsigned char *data, size_t data_len,
|
A D | hmac_drbg.h | 235 const unsigned char *data, size_t data_len );
|
A D | cipher.h | 327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len ); 328 int (*get_padding)( unsigned char *input, size_t ilen, size_t *data_len );
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ssl_internal.h | 548 size_t data_len; member 846 size_t data_len; /* Length of record content */ member 1239 unsigned char *data, size_t data_len ); 1248 unsigned char *data, size_t data_len,
|
A D | hmac_drbg.h | 235 const unsigned char *data, size_t data_len );
|
A D | cipher.h | 327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len ); 328 int (*get_padding)( unsigned char *input, size_t ilen, size_t *data_len );
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | ssl_internal.h | 548 size_t data_len; member 846 size_t data_len; /* Length of record content */ member 1239 unsigned char *data, size_t data_len ); 1248 unsigned char *data, size_t data_len,
|
A D | hmac_drbg.h | 235 const unsigned char *data, size_t data_len );
|
A D | cipher.h | 327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len ); 328 int (*get_padding)( unsigned char *input, size_t ilen, size_t *data_len );
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | ssl_internal.h | 548 size_t data_len; member 846 size_t data_len; /* Length of record content */ member 1239 unsigned char *data, size_t data_len ); 1248 unsigned char *data, size_t data_len,
|
A D | hmac_drbg.h | 235 const unsigned char *data, size_t data_len );
|