Home
last modified time | relevance | path

Searched refs:res (Results 1 – 15 of 15) sorted by relevance

/mbedtls-3.7.0/tests/suites/
Dtest_suite_pkcs7.function22 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 …]
Dtest_suite_base64.function91 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 …]
Dtest_suite_pkparse.function105 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 …]
Dtest_suite_x509parse.function531 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 …]
Dtest_suite_bignum.function770 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 …]
Dtest_suite_nist_kw.function146 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);
Dtest_suite_bignum_mod_raw.function273 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 …]
Dtest_suite_pem.function66 char *pwd, int res, data_t *out)
80 TEST_ASSERT(ret == res);
Dtest_suite_ccm.function101 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);
Dtest_suite_ecp.function1562 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);
Dtest_suite_ssl.data2838 SSL TLS 1.3 Key schedule: Derive-Secret( ., "res master", hash)
/mbedtls-3.7.0/scripts/
Dcode_size_compare.py371 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/
Dbignum_core.py105 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)
Dbignum_common.py171 def format_result(self, res: int) -> str:
172 res_str = '{:x}'.format(res)
/mbedtls-3.7.0/library/
Dx509_crt.c2828 uint8_t *res = (uint8_t *) dst; in x509_inet_pton_ipv4() local
2855 *res++ = (uint8_t) octet; in x509_inet_pton_ipv4()