/mbedtls-development/library/ |
A D | ecdsa.c | 118 mbedtls_mpi_init( &ctx->r ); in ecdsa_restart_sig_init() 131 mbedtls_mpi_free( &ctx->r ); in ecdsa_restart_sig_free() 264 mbedtls_mpi *pk = &k, *pr = r; in ecdsa_sign_restartable() 286 pr = &rs_ctx->sig->r; in ecdsa_sign_restartable() 560 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in ecdsa_verify_restartable() 687 mbedtls_mpi r, s; in mbedtls_ecdsa_write_signature_restartable() local 696 mbedtls_mpi_init( &r ); in mbedtls_ecdsa_write_signature_restartable() 722 mbedtls_mpi_free( &r ); in mbedtls_ecdsa_write_signature_restartable() 773 mbedtls_mpi r, s; in mbedtls_ecdsa_read_signature_restartable() local 778 mbedtls_mpi_init( &r ); in mbedtls_ecdsa_read_signature_restartable() [all …]
|
A D | aria.c | 74 uint32_t r; in aria_p1() local 76 return( r ); in aria_p1() 83 uint32_t r; in aria_p1() local 85 return( r ); in aria_p1() 125 uint32_t r; in aria_p3() local 127 return( r ); in aria_p3() 134 uint32_t r; in aria_p3() local 136 return( r ); in aria_p3() 356 r[0] = a ^ x[0]; in aria_fo_xor() 357 r[1] = b ^ x[1]; in aria_fo_xor() [all …]
|
A D | psa_crypto_ecp.c | 372 mbedtls_mpi r, s; in ecdsa_sign_hash() local 383 mbedtls_mpi_init( &r ); in ecdsa_sign_hash() 399 &ecp->grp, &r, &s, in ecdsa_sign_hash() 412 MBEDTLS_MPI_CHK( mbedtls_ecdsa_sign( &ecp->grp, &r, &s, &ecp->d, in ecdsa_sign_hash() 418 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &r, in ecdsa_sign_hash() 425 mbedtls_mpi_free( &r ); in ecdsa_sign_hash() 446 mbedtls_mpi r, s; in ecdsa_verify_hash() local 459 mbedtls_mpi_init( &r ); in ecdsa_verify_hash() 468 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &r, in ecdsa_verify_hash() 484 &ecp->Q, &r, &s ); in ecdsa_verify_hash() [all …]
|
A D | poly1305.c | 106 r0 = ctx->r[0]; in poly1305_process() 107 r1 = ctx->r[1]; in poly1305_process() 108 r2 = ctx->r[2]; in poly1305_process() 109 r3 = ctx->r[3]; in poly1305_process() 281 ctx->r[0] = MBEDTLS_GET_UINT32_LE( key, 0 ) & 0x0FFFFFFFU; in mbedtls_poly1305_starts() 282 ctx->r[1] = MBEDTLS_GET_UINT32_LE( key, 4 ) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 283 ctx->r[2] = MBEDTLS_GET_UINT32_LE( key, 8 ) & 0x0FFFFFFCU; in mbedtls_poly1305_starts() 284 ctx->r[3] = MBEDTLS_GET_UINT32_LE( key, 12 ) & 0x0FFFFFFCU; in mbedtls_poly1305_starts()
|
A D | bignum.c | 647 mbedtls_mpi_uint r; in mpi_write_hlp() local 663 if( r < 0xA ) in mpi_write_hlp() 1454 c = ( t < r[i] ) + z; d[i] = t - r[i]; in mpi_sub_hlp() 1821 if (r != NULL) *r = ~0; in mbedtls_int_div_int() 1833 if( r != NULL ) in mbedtls_int_div_int() 1886 if (r != NULL) in mbedtls_int_div_int() 2089 *r = 0; in mbedtls_mpi_mod_int() 2122 *r = y; in mbedtls_mpi_mod_int() 2914 mbedtls_mpi_uint r; in mpi_check_small_factors() local 2926 if( r == 0 ) in mpi_check_small_factors() [all …]
|
/mbedtls-development/tests/scripts/ |
A D | check_names.py | 479 r".* \**(\w+) *\( *\w|" 481 r".*\( *\* *(\w+) *\) *\(|" 485 r"}? *(\w+)[;[].*" 489 r"^(" 492 r"} *;?$|" 493 r"$|" 494 r"//|" 495 r"#" 496 r")" 515 if re.search(r"/\*", line): [all …]
|
A D | generate_psa_tests.py | 54 return re.sub(r'_FAMILY_(.*)', r'_\1_' + str(bits), dep) 147 short_key_type = re.sub(r'PSA_(KEY_TYPE|ECC_FAMILY)_', r'', key_type) 245 short_key_type = re.sub(r'PSA_(KEY_TYPE|ECC_FAMILY)_', r'', key_type) 422 short = re.sub(r'PSA_KEY_[A-Z]+_', r'', short) 455 short = re.sub(r'\bPSA_KEY_USAGE_', r'', usage) 536 descr = re.sub(r'PSA_ALG_', r'', alg) 537 descr = re.sub(r',', r', ', re.sub(r' +', r'', descr)) 616 usage_expression = re.sub(r'PSA_KEY_USAGE_', r'', implyer_usage) 617 alg_expression = re.sub(r'PSA_ALG_', r'', alg) 618 alg_expression = re.sub(r',', r', ', re.sub(r' +', r'', alg_expression)) [all …]
|
A D | translate_ciphers.py | 86 m_cipher = re.sub(r'\ATLS-', '+', m_cipher) 98 m_cipher = re.sub(r"GCM-SHA\d\d\d", "GCM", m_cipher) 114 m_cipher = re.sub(r'^TLS-', '', m_cipher) 123 m_cipher = re.sub(r'^RSA-', r'', m_cipher) 131 m_cipher = re.sub(r'(?<!DES-)CBC-', r'', m_cipher)
|
A D | generate_test_code.py | 174 BEGIN_DEP_REGEX = r'BEGIN_DEPENDENCIES' 175 END_DEP_REGEX = r'END_DEPENDENCIES' 178 END_CASE_REGEX = r'/\*\s*END_CASE\s*\*/' 181 C_IDENTIFIER_REGEX = r'!?[a-z_][a-z0-9_]*' 182 CONDITION_OPERATOR_REGEX = r'[!=]=|[<>]=?' 189 INT_CHECK_REGEX = r'int\s+.*' 190 CHAR_CHECK_REGEX = r'char\s*\*\s*.*' 191 DATA_T_CHECK_REGEX = r'data_t\s*\*\s*.*' 192 FUNCTION_ARG_LIST_END_REGEX = r'.*\)' 193 EXIT_LABEL_REGEX = r'^exit:' [all …]
|
A D | check_files.py | 115 r'docs/.*\.pdf\Z', 116 r'programs/fuzz/corpuses/[^.]+\Z', 117 r'tests/data_files/[^.]+\Z', 118 r'tests/data_files/.*\.(crt|csr|db|der|key|pubkey)\Z', 119 r'tests/data_files/.*\.req\.[^/]+\Z', 120 r'tests/data_files/.*malformed[^/]+\Z', 121 r'tests/data_files/format_pkcs12\.fmt\Z',
|
A D | test_generate_test_code.py | 558 err_msg = r'file: test_suite_ut.function - '\ 1027 test_str = r'yahoo\:google:facebook' 1029 self.assertEqual(splits, [r'yahoo\:google', 'facebook']) 1036 test_str = r'yahoo\\:google:facebook' 1038 self.assertEqual(splits, [r'yahoo\\', 'google', 'facebook']) 1045 test_str = r'yahoo\\:google:facebook\:instagram\\:bbc\\:wikipedia' 1047 self.assertEqual(splits, [r'yahoo\\', r'google', 1048 r'facebook\:instagram\\', 1049 r'bbc\\', r'wikipedia'])
|
A D | test_config_script.py | 69 hits = re.findall(r'\{([-\w,]+)\}', help_text) 78 hits = re.findall(r'\n +([-\w]+) +- ', help_text) 90 return re.split(r'[ ,]+', options.presets)
|
/mbedtls-development/scripts/mbedtls_dev/ |
A D | macro_collector.py | 155 _argument_split_re = re.compile(r' *, *') 266 if re.match(r'MAC(?:_|\Z)', name): 268 elif re.match(r'KDF(?:_|\Z)', name): 272 elif re.search(r'0x03[0-9A-Fa-f]{6}', expansion): 274 elif re.search(r'0x05[0-9A-Fa-f]{6}', expansion): 287 r'(.+)') 300 expansion = re.sub(r'/\*.*?\*/|//.*', r' ', expansion) 442 re.compile(r'#define +' + 444 r'(?:\(([^\n()]*)\))?') 483 _macro_identifier_re = re.compile(r'[A-Z]\w+') [all …]
|
A D | asymmetric_key_data.py | 38 private = 'PSA_KEY_TYPE_' + re.sub(r'(\(|\Z)', r'_KEY_PAIR\1', typ, 1) 39 public = 'PSA_KEY_TYPE_' + re.sub(r'(\(|\Z)', r'_PUBLIC_KEY\1', typ, 1)
|
A D | crypto_knowledge.py | 48 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name) 58 assert re.match(r'PSA_KEY_TYPE_\w+\Z', self.name) 65 self.private_type = re.sub(r'_PUBLIC_KEY\Z', r'_KEY_PAIR', self.name)
|
/mbedtls-development/tests/suites/ |
A D | test_suite_ecdsa.function | 15 mbedtls_mpi d, r, s; 21 mbedtls_mpi_init( &d ); mbedtls_mpi_init( &r ); mbedtls_mpi_init( &s ); 47 mbedtls_mpi d, r, s; 85 mbedtls_mpi d, r, s, r_check, s_check; 120 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &r, &r_check ) == 0 ); 125 TEST_ASSERT( mbedtls_mpi_sub_int( &r, &r, 1 ) == 0 ); 149 mbedtls_mpi d, r, s, r_check, s_check; 176 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &r, &r_check ) == 0 ); 229 /* try modifying r */ 293 /* try modifying r */ [all …]
|
A D | test_suite_ecjpake.data | 58 ECJPAKE round one: KKP1: zero-length r 61 ECJPAKE round one: KKP1: no data for r 64 ECJPAKE round one: KKP1: corrupted r 106 ECJPAKE round one: KKP2: zero-length r 109 ECJPAKE round one: KKP2: no data for r 112 ECJPAKE round one: KKP2: corrupted r 172 ECJPAKE round two client: zero-length r 175 ECJPAKE round two client: no data for r 178 ECJPAKE round two client: corrupted r 226 ECJPAKE round two server: zero-length r [all …]
|
A D | test_suite_base64.data | 109 Base64 decode "Zm9vYmFy\r\n" (CRLF at end) 112 Base64 decode "Zm9vYmFy\r" (CR at end) 121 Base64 decode "Zm9vYmFy \r\n" (SP+CRLF at end) 124 Base64 decode "Zm9vYmFy \r" (SP+CR at end) 133 Base64 decode "Zm9vYmFy \r\n" (2SP+CRLF at end) 136 Base64 decode "Zm9vYmFy \r" (2SP+CR at end)
|
A D | test_suite_random.function | 180 mbedtls_mpi d, r, s; 185 mbedtls_mpi_init( &r ); 191 TEST_EQUAL( 0, mbedtls_ecdsa_sign( &grp, &r, &s, &d, 197 mbedtls_mpi_free( &r );
|
/mbedtls-development/scripts/ |
A D | config.py | 354 _define_line_regexp = (r'(?P<indentation>\s*)' + 355 r'(?P<commented_out>(//\s*)?)' + 356 r'(?P<define>#\s*define\s+)' + 357 r'(?P<name>\w+)' + 358 r'(?P<arguments>(?:\((?:\w|\s|,)*\))?)' + 359 r'(?P<separator>\s*)' + 360 r'(?P<value>.*)') 361 _section_line_regexp = (r'\s*/?\*+\s*[\\@]name\s+SECTION:\s*' + 362 r'(?P<section>.*)[ */]*') 363 _config_line_regexp = re.compile(r'|'.join([_define_line_regexp,
|
A D | ecp_comb_table.py | 45 SRC_DUMP_COMB_TABLE = r''' 137 SRC_DUMP_KNOWN_CURVE = r''' 199 r = run_c_source( 206 if not r:
|
A D | assemble_changelog.py | 129 return not re.search(r'[0-9x]{4}-[0-9x]{2}-[0-9x]?x', title) 131 _top_version_re = re.compile(r'(?:\A|\n)(=[^\n]*\n+)(.*?\n)(?:=|$)', 151 return re.sub(r'\n.*', version_title, re.DOTALL) 153 _category_title_re = re.compile(r'(^\w.*)\n+', re.MULTILINE) 202 _version_number_re = re.compile(r'[0-9]+\.[0-9A-Za-z.]+') 203 _incomplete_version_number_re = re.compile(r'.*\.[A-Za-z]') 204 _only_url_re = re.compile(r'^\s*\w+://\S+\s*$') 205 _has_url_re = re.compile(r'.*://.*')
|
/mbedtls-development/programs/x509/ |
A D | cert_req.c | 157 char *p, *q, *r; in main() local 228 if( ( r = strchr( q, ',' ) ) != NULL ) in main() 229 *r++ = '\0'; in main() 248 q = r; in main() 264 if( ( r = strchr( q, ',' ) ) != NULL ) in main() 265 *r++ = '\0'; in main() 284 q = r; in main()
|
A D | cert_write.c | 223 char *p, *q, *r; in main() local 403 if( ( r = strchr( q, ',' ) ) != NULL ) in main() 404 *r++ = '\0'; in main() 426 q = r; in main() 433 if( ( r = strchr( q, ',' ) ) != NULL ) in main() 434 *r++ = '\0'; in main() 456 q = r; in main()
|
/mbedtls-development/include/mbedtls/ |
A D | ecdsa.h | 169 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, 213 int mbedtls_ecdsa_sign_det_ext( mbedtls_ecp_group *grp, mbedtls_mpi *r, 255 const mbedtls_ecp_point *Q, const mbedtls_mpi *r,
|