Searched refs:tmp_buf (Results 1 – 2 of 2) sorted by relevance
/mbedtls-3.5.0/programs/ssl/ |
D | ssl_test_common_source.c | 150 unsigned char *tmp_buf; in ssl_check_record() local 154 tmp_buf = mbedtls_calloc(1, len); in ssl_check_record() 155 if (tmp_buf == NULL) { in ssl_check_record() 158 memcpy(tmp_buf, buf, len); in ssl_check_record() 160 ret_cr1 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record() 164 memcpy(tmp_buf, buf, len); /* Restore buffer */ in ssl_check_record() 165 ret_cr2 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record() 205 mbedtls_free(tmp_buf); in ssl_check_record()
|
/mbedtls-3.5.0/library/ |
D | ccm.c | 120 unsigned char tmp_buf[16] = { 0 }; in mbedtls_ccm_crypt() local 122 if ((ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->ctr, 16, tmp_buf, in mbedtls_ccm_crypt() 125 mbedtls_platform_zeroize(tmp_buf, sizeof(tmp_buf)); in mbedtls_ccm_crypt() 129 mbedtls_xor(output, input, tmp_buf + offset, use_len); in mbedtls_ccm_crypt() 131 mbedtls_platform_zeroize(tmp_buf, sizeof(tmp_buf)); in mbedtls_ccm_crypt()
|