Home
last modified time | relevance | path

Searched refs:tmp_buf (Results 1 – 3 of 3) sorted by relevance

/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_psa_crypto_util.function9 unsigned char *tmp_buf = NULL;
13 TEST_CALLOC(tmp_buf, tmp_buf_len);
23 mbedtls_free(tmp_buf);
30 unsigned char *tmp_buf = NULL;
36 TEST_CALLOC(tmp_buf, i);
39 mbedtls_free(tmp_buf);
40 tmp_buf = NULL;
45 TEST_CALLOC(tmp_buf, i);
48 mbedtls_free(tmp_buf);
49 tmp_buf = NULL;
[all …]
/lib/mbedtls/external/mbedtls/programs/ssl/
A Dssl_test_common_source.c138 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()
/lib/mbedtls/external/mbedtls/library/
A Dccm.c129 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()

Completed in 6 milliseconds