Searched refs:res (Results 1 – 15 of 15) sorted by relevance
/mbedtls-3.7.0/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_pkparse.function | 105 int res; 115 res = mbedtls_pk_parse_keyfile(&ctx, key_file, pwd, 118 TEST_EQUAL(res, result); 120 if (res == 0) { 152 int res; 157 res = mbedtls_pk_parse_public_keyfile(&ctx, key_file); 159 TEST_EQUAL(res, result); 161 if (res == 0) { 189 int res; 194 res = mbedtls_pk_parse_public_keyfile(&ctx, key_file); [all …]
|
D | test_suite_x509parse.function | 531 int res; 538 res = mbedtls_x509_crt_info(buf, 2000, "", &crt); 540 TEST_ASSERT(res != -1); 541 TEST_ASSERT(res != -2); 556 int res; 563 res = mbedtls_x509_crl_info(buf, 2000, "", &crl); 565 TEST_ASSERT(res != -1); 566 TEST_ASSERT(res != -2); 599 int res; 606 res = mbedtls_x509_csr_info(buf, 2000, "", &csr); [all …]
|
D | test_suite_bignum.function | 770 int res; 777 res = mbedtls_mpi_sub_abs(&Z, &X, &Y); 778 TEST_ASSERT(res == sub_result); 780 if (res == 0) { 871 int res; 879 res = mbedtls_mpi_div_mpi(&Q, &R, &X, &Y); 880 TEST_ASSERT(res == div_result); 881 if (res == 0) { 900 int res; 907 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-3.7.0/scripts/ |
D | code_size_compare.py | 371 res = {} 378 res[mod] = result 382 return res 419 res = self._gen_raw_code_size(git_worktree_path) 423 return res 663 res = [] 674 res.append([fname, *text_sect, *data_sect]) 675 return res 697 res = get_results(f_rev_size) 702 res += total_clm [all …]
|
/mbedtls-3.7.0/scripts/mbedtls_dev/ |
D | bignum_core.py | 105 def format_result(self, res: int) -> str: 107 res_str = bignum_common.zfill_match(self.val_n, "{:x}".format(res)) 300 def format_result(self, res: int) -> str: 301 res_str = '{:x}'.format(res)
|
D | bignum_common.py | 171 def format_result(self, res: int) -> str: 172 res_str = '{:x}'.format(res)
|
/mbedtls-3.7.0/library/ |
D | x509_crt.c | 2828 uint8_t *res = (uint8_t *) dst; in x509_inet_pton_ipv4() local 2855 *res++ = (uint8_t) octet; in x509_inet_pton_ipv4()
|