Searched refs:tmp_buf (Results 1 – 3 of 3) sorted by relevance
/mbedtls-latest/tests/suites/ |
D | test_suite_psa_crypto_util.function | 9 unsigned char *tmp_buf = NULL; 13 TEST_CALLOC(tmp_buf, tmp_buf_len); 16 tmp_buf, tmp_buf_len, &ret_len), exp_ret); 19 ASSERT_COMPARE(exp_result->x, exp_result->len, tmp_buf, ret_len); 23 mbedtls_free(tmp_buf); 30 unsigned char *tmp_buf = NULL; 36 TEST_CALLOC(tmp_buf, i); 38 tmp_buf, i, &ret_len) != 0); 39 mbedtls_free(tmp_buf); 40 tmp_buf = NULL; [all …]
|
/mbedtls-latest/programs/ssl/ |
D | ssl_test_common_source.c | 138 unsigned char *tmp_buf; in ssl_check_record() local 142 tmp_buf = mbedtls_calloc(1, len); in ssl_check_record() 143 if (tmp_buf == NULL) { in ssl_check_record() 146 memcpy(tmp_buf, buf, len); in ssl_check_record() 148 ret_cr1 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record() 152 memcpy(tmp_buf, buf, len); /* Restore buffer */ in ssl_check_record() 153 ret_cr2 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record() 193 mbedtls_free(tmp_buf); in ssl_check_record()
|
/mbedtls-latest/library/ |
D | ccm.c | 129 unsigned char tmp_buf[16] = { 0 }; in mbedtls_ccm_crypt() local 132 ret = mbedtls_block_cipher_encrypt(&ctx->block_cipher_ctx, ctx->ctr, tmp_buf); in mbedtls_ccm_crypt() 135 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->ctr, 16, tmp_buf, &olen); in mbedtls_ccm_crypt() 139 mbedtls_platform_zeroize(tmp_buf, sizeof(tmp_buf)); in mbedtls_ccm_crypt() 143 mbedtls_xor(output, input, tmp_buf + offset, use_len); in mbedtls_ccm_crypt() 145 mbedtls_platform_zeroize(tmp_buf, sizeof(tmp_buf)); in mbedtls_ccm_crypt()
|