Searched refs:res (Results 1 – 13 of 13) sorted by relevance
/mbedtls-latest/tests/suites/ |
D | test_suite_pkcs7.function | 22 int res; 26 res = mbedtls_pkcs7_parse_der(&pkcs7, pkcs7_buf, buflen); 28 return res; 35 int res; 36 res = pkcs7_parse_buffer(pkcs7_buf->x, pkcs7_buf->len); 37 TEST_ASSERT(res != MBEDTLS_PKCS7_SIGNED_DATA); 47 int res; 49 res = mbedtls_pk_load_file(pkcs7_file, &pkcs7_buf, &buflen); 50 TEST_EQUAL(res, 0); 52 res = pkcs7_parse_buffer(pkcs7_buf, buflen); [all …]
|
D | test_suite_base64.function | 91 int res; 97 res = mbedtls_base64_decode(dst_str, sizeof(dst_str), &len, src_str, strlen((char *) src_str)); 98 TEST_ASSERT(res == result); 109 unsigned char *res = NULL; 112 res = mbedtls_test_zero_alloc(dst_buf_size); 115 TEST_ASSERT(mbedtls_base64_encode(res, dst_buf_size, &len, src->x, src->len) == result); 118 /* res will have had tainted data copied to it, prevent the TEST_ASSERT below from triggering 120 TEST_CF_PUBLIC(res, len); 124 TEST_ASSERT(memcmp(dst, res, len) == 0); 128 mbedtls_free(res); [all …]
|
D | test_suite_x509parse.function | 544 int res; 551 res = mbedtls_x509_crt_info(buf, 2000, "", &crt); 553 TEST_ASSERT(res != -1); 554 TEST_ASSERT(res != -2); 569 int res; 576 res = mbedtls_x509_crl_info(buf, 2000, "", &crl); 578 TEST_ASSERT(res != -1); 579 TEST_ASSERT(res != -2); 612 int res; 619 res = mbedtls_x509_csr_info(buf, 2000, "", &csr); [all …]
|
D | test_suite_pkparse.function | 117 int res; 127 res = mbedtls_pk_parse_keyfile(&ctx, key_file, pwd, 130 TEST_EQUAL(res, result); 132 if (res == 0) { 164 int res; 169 res = mbedtls_pk_parse_public_keyfile(&ctx, key_file); 171 TEST_EQUAL(res, result); 173 if (res == 0) { 201 int res; 206 res = mbedtls_pk_parse_public_keyfile(&ctx, key_file); [all …]
|
D | test_suite_bignum.function | 773 int res; 780 res = mbedtls_mpi_sub_abs(&Z, &X, &Y); 781 TEST_ASSERT(res == sub_result); 783 if (res == 0) { 874 int res; 882 res = mbedtls_mpi_div_mpi(&Q, &R, &X, &Y); 883 TEST_ASSERT(res == div_result); 884 if (res == 0) { 903 int res; 910 res = mbedtls_mpi_div_int(&Q, &R, &X, input_Y); [all …]
|
D | test_suite_nist_kw.function | 146 void nist_kw_plaintext_lengths(int in_len, int out_len, int mode, int res) 173 output_len) == res); 174 if (res == 0) { 193 void nist_kw_ciphertext_lengths(int in_len, int out_len, int mode, int res) 221 if (res == 0) { 224 TEST_ASSERT(unwrap_ret == res);
|
D | test_suite_bignum_mod_raw.function | 273 mbedtls_mpi_uint *res = NULL; 285 TEST_EQUAL(mbedtls_test_read_mpi_core(&res, &limbs_res, result), 0); 300 TEST_MEMORY_COMPARE(X, bytes, res, bytes); 305 TEST_MEMORY_COMPARE(X, bytes, res, bytes); 310 TEST_MEMORY_COMPARE(X, bytes, res, bytes); 315 TEST_MEMORY_COMPARE(X, bytes, res, bytes); 320 TEST_MEMORY_COMPARE(X, bytes, res, bytes); 326 mbedtls_free(res); 340 mbedtls_mpi_uint *res = NULL; 351 TEST_EQUAL(mbedtls_test_read_mpi_core(&res, &limbs_res, result), 0); [all …]
|
D | test_suite_pem.function | 66 char *pwd, int res, data_t *out) 80 TEST_ASSERT(ret == res);
|
D | test_suite_ccm.function | 101 void ccm_lengths(int msg_len, int iv_len, int add_len, int tag_len, int res) 126 msg, out, tag, tag_len) == res); 131 if (res == 0) { 134 TEST_ASSERT(decrypt_ret == res); 146 int res) 171 add, add_len, msg, out, tag, tag_len) == res); 176 if (res == 0 && tag_len != 0) { 179 TEST_ASSERT(decrypt_ret == res);
|
D | test_suite_ecp.function | 1562 mbedtls_mpi_uint *res = NULL; 1577 TEST_EQUAL(mbedtls_test_read_mpi_core(&res, &limbs_res, result), 0); 1666 TEST_MEMORY_COMPARE(X, bytes, res, bytes); 1670 mbedtls_free(res);
|
D | test_suite_ssl.data | 2838 SSL TLS 1.3 Key schedule: Derive-Secret( ., "res master", hash)
|
/mbedtls-latest/scripts/ |
D | code_size_compare.py | 372 res = {} 379 res[mod] = result 383 return res 420 res = self._gen_raw_code_size(git_worktree_path) 424 return res 664 res = [] 675 res.append([fname, *text_sect, *data_sect]) 676 return res 698 res = get_results(f_rev_size) 703 res += total_clm [all …]
|
/mbedtls-latest/library/ |
D | x509_crt.c | 2830 uint8_t *res = (uint8_t *) dst; in x509_inet_pton_ipv4() local 2857 *res++ = (uint8_t) octet; in x509_inet_pton_ipv4()
|