Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 135) sorted by relevance

123456

/mbedtls-development/library/
A Dbn_mul.h510 : "=m" (c), "=m" (d), "=m" (s) \
511 : "m" (s), "m" (d), "m" (c), "m" (b) \
542 : "=m" (c), "=m" (d), "=m" (s) \
543 : "m" (s), "m" (d), "m" (c), "m" (b) \
624 : "=m" (c), "=m" (d), "=m" (s) \
625 : "m" (s), "m" (d), "m" (c), "m" (b) \
697 : "=m" (c), "=m" (d), "=m" (s) \
698 : "m" (s), "m" (d), "m" (c), "m" (b) \
716 : "=r" (s), "=r" (d), "=r" (c) \
955 s0 = ( *s << biH ) >> biH; \
[all …]
A Dplatform.c88 ret = mbedtls_vsnprintf( s, n, fmt, argp ); in mbedtls_platform_win32_snprintf()
100 static int platform_snprintf_uninit( char * s, size_t n, in platform_snprintf_uninit() argument
103 ((void) s); in platform_snprintf_uninit()
112 int (*mbedtls_snprintf)( char * s, size_t n,
132 if( s == NULL || n == 0 || fmt == NULL ) in mbedtls_platform_win32_vsnprintf()
136 ret = vsnprintf_s( s, n, _TRUNCATE, fmt, arg ); in mbedtls_platform_win32_vsnprintf()
138 ret = vsnprintf( s, n, fmt, arg ); in mbedtls_platform_win32_vsnprintf()
141 s[n-1] = '\0'; in mbedtls_platform_win32_vsnprintf()
155 static int platform_vsnprintf_uninit( char * s, size_t n, in platform_vsnprintf_uninit() argument
158 ((void) s); in platform_vsnprintf_uninit()
[all …]
A Dbignum.c239 X->s = Y->s; in mbedtls_mpi_copy()
411 s = X->s; in mbedtls_mpi_safe_cond_swap()
1525 s = A->s; in mbedtls_mpi_add_mpi()
1542 X->s = s; in mbedtls_mpi_add_mpi()
1560 s = A->s; in mbedtls_mpi_sub_mpi()
1577 X->s = s; in mbedtls_mpi_sub_mpi()
1752 X->s = A->s * B->s; in mbedtls_mpi_mul_mpi()
1933 X.s = Y.s = 1; in mbedtls_mpi_div_mpi()
2001 Q->s = A->s * B->s; in mbedtls_mpi_div_mpi()
2007 X.s = A->s; in mbedtls_mpi_div_mpi()
[all …]
A Decdsa.c367 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( s, s, &e ) ); in ecdsa_sign_restartable()
368 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( s, s, &grp->N ) ); in ecdsa_sign_restartable()
409 ECDSA_VALIDATE_RET( s != NULL ); in mbedtls_ecdsa_sign()
561 mbedtls_mpi_cmp_int( s, 1 ) < 0 || mbedtls_mpi_cmp_mpi( s, &grp->N ) >= 0 ) in ecdsa_verify_restartable()
640 ECDSA_VALIDATE_RET( s != NULL ); in mbedtls_ecdsa_verify()
687 mbedtls_mpi r, s; in mbedtls_ecdsa_write_signature_restartable() local
697 mbedtls_mpi_init( &s ); in mbedtls_ecdsa_write_signature_restartable()
723 mbedtls_mpi_free( &s ); in mbedtls_ecdsa_write_signature_restartable()
773 mbedtls_mpi r, s; in mbedtls_ecdsa_read_signature_restartable() local
779 mbedtls_mpi_init( &s ); in mbedtls_ecdsa_read_signature_restartable()
[all …]
A Dx509_create.c44 #define ADD_STRLEN( s ) s, sizeof( s ) - 1 argument
126 const char *s = name, *c = s; in mbedtls_x509_string_to_names() local
127 const char *end = s + strlen( s ); in mbedtls_x509_string_to_names()
141 if( ( attr_descr = x509_attr_descr_from_name( s, c - s ) ) == NULL ) in mbedtls_x509_string_to_names()
148 s = c + 1; in mbedtls_x509_string_to_names()
182 s = c + 1; in mbedtls_x509_string_to_names()
186 if( !in_tag && s != c + 1 ) in mbedtls_x509_string_to_names()
A Dpem.c54 static int pem_get_iv( const unsigned char *s, unsigned char *iv, in pem_get_iv() argument
61 for( i = 0; i < iv_len * 2; i++, s++ ) in pem_get_iv()
63 if( *s >= '0' && *s <= '9' ) j = *s - '0'; else in pem_get_iv()
64 if( *s >= 'A' && *s <= 'F' ) j = *s - '7'; else in pem_get_iv()
65 if( *s >= 'a' && *s <= 'f' ) j = *s - 'W'; else in pem_get_iv()
A Dpsa_crypto_ecp.c372 mbedtls_mpi r, s; in ecdsa_sign_hash() local
384 mbedtls_mpi_init( &s ); 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()
421 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &s, in ecdsa_sign_hash()
426 mbedtls_mpi_free( &s ); in ecdsa_sign_hash()
446 mbedtls_mpi r, s; in ecdsa_verify_hash() local
460 mbedtls_mpi_init( &s ); in ecdsa_verify_hash()
471 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &s, in ecdsa_verify_hash()
484 &ecp->Q, &r, &s ); in ecdsa_verify_hash()
[all …]
A Dpoly1305.c244 d = (uint64_t) acc0 + ctx->s[0]; in poly1305_compute_mac()
246 d = (uint64_t) acc1 + ctx->s[1] + ( d >> 32U ); in poly1305_compute_mac()
248 d = (uint64_t) acc2 + ctx->s[2] + ( d >> 32U ); in poly1305_compute_mac()
250 acc3 += ctx->s[3] + (uint32_t) ( d >> 32U ); in poly1305_compute_mac()
286 ctx->s[0] = MBEDTLS_GET_UINT32_LE( key, 16 ); in mbedtls_poly1305_starts()
287 ctx->s[1] = MBEDTLS_GET_UINT32_LE( key, 20 ); in mbedtls_poly1305_starts()
288 ctx->s[2] = MBEDTLS_GET_UINT32_LE( key, 24 ); in mbedtls_poly1305_starts()
289 ctx->s[3] = MBEDTLS_GET_UINT32_LE( key, 28 ); in mbedtls_poly1305_starts()
A Doid.c42 #define ADD_LEN(s) s, MBEDTLS_OID_SIZE(s) argument
48 #define OID_DESCRIPTOR(s, name, description) { ADD_LEN(s), name, description } argument
51 #define OID_DESCRIPTOR(s, name, description) { ADD_LEN(s) } argument
A Dx509.c748 char s[MBEDTLS_X509_MAX_DN_NAME_SIZE], *p; in mbedtls_x509_dn_gets() local
750 memset( s, 0, sizeof( s ) ); in mbedtls_x509_dn_gets()
780 if( i >= sizeof( s ) - 1 ) in mbedtls_x509_dn_gets()
785 s[i] = '?'; in mbedtls_x509_dn_gets()
786 else s[i] = c; in mbedtls_x509_dn_gets()
788 s[i] = '\0'; in mbedtls_x509_dn_gets()
789 ret = mbedtls_snprintf( p, n, "%s", s ); in mbedtls_x509_dn_gets()
A Dnist_kw.c167 size_t s; in mbedtls_nist_kw_wrap() local
234 s = 6 * ( semiblocks - 1 ); in mbedtls_nist_kw_wrap()
260 for( t = 1; t <= s; t++ ) in mbedtls_nist_kw_wrap()
308 const size_t s = 6 * ( semiblocks - 1 ); in unwrap() local
326 for( t = s; t >= 1; t-- ) in unwrap()
/mbedtls-development/3rdparty/everest/library/kremlib/
A DFStar_UInt128_extracted.c113 return (hi << s) + (lo >> (FStar_UInt128_u32_64 - s)); in FStar_UInt128_add_u64_shift_left()
124 if (s == (uint32_t)0U) in FStar_UInt128_shift_left_small()
131 flat = { a.low << s, FStar_UInt128_add_u64_shift_left_respec(a.high, a.low, s) }; in FStar_UInt128_shift_left_small()
145 if (s < FStar_UInt128_u32_64) in FStar_UInt128_shift_left()
147 return FStar_UInt128_shift_left_small(a, s); in FStar_UInt128_shift_left()
151 return FStar_UInt128_shift_left_large(a, s); in FStar_UInt128_shift_left()
157 return (lo >> s) + (hi << (FStar_UInt128_u32_64 - s)); in FStar_UInt128_add_u64_shift_right()
168 if (s == (uint32_t)0U) in FStar_UInt128_shift_right_small()
175 flat = { FStar_UInt128_add_u64_shift_right_respec(a.high, a.low, s), a.high >> s }; in FStar_UInt128_shift_right_small()
189 if (s < FStar_UInt128_u32_64) in FStar_UInt128_shift_right()
[all …]
/mbedtls-development/tests/suites/
A Dtest_suite_ecdsa.function15 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;
121 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &s, &s_check ) == 0 );
126 TEST_ASSERT( mbedtls_mpi_add_int( &s, &s, 1 ) == 0 );
149 mbedtls_mpi d, r, s, r_check, s_check;
177 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &s, &s_check ) == 0 );
235 /* try modifying s */
299 /* try modifying s */
[all …]
A Dhost_test.function17 "Expected string (with \"\") for parameter and got: %s\n", *str );
88 "Usage: %s [OPTIONS] files...\n\n" \
93 " %s\n\n" \
346 ret = mbedtls_snprintf( buf, n, "%s", "123" );
417 mbedtls_fprintf( outcome_file, "%s;%s;%s;%s;",
470 mbedtls_fprintf( outcome_file, "FAIL;%s:%d:%s",
642 mbedtls_fprintf( stdout, "%s%.66s",
771 mbedtls_fprintf( stdout, " %s\n at ",
778 mbedtls_fprintf( stdout, "line %d, %s",
782 mbedtls_fprintf( stdout, "\n %s",
[all …]
A Dtest_suite_random.function180 mbedtls_mpi d, r, s;
186 mbedtls_mpi_init( &s );
191 TEST_EQUAL( 0, mbedtls_ecdsa_sign( &grp, &r, &s, &d,
198 mbedtls_mpi_free( &s );
/mbedtls-development/include/mbedtls/
A Dplatform.h217 int mbedtls_platform_win32_snprintf( char *s, size_t n, const char *fmt, ... );
221 extern int (*mbedtls_snprintf)( char * s, size_t n, const char * format, ... );
231 int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n,
253 int mbedtls_platform_win32_vsnprintf( char *s, size_t n, const char *fmt, va_list arg );
258 extern int (*mbedtls_vsnprintf)( char * s, size_t n, const char * format, va_list arg );
267 int mbedtls_platform_set_vsnprintf( int (*vsnprintf_func)( char * s, size_t n,
A Decdsa.h169 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s,
214 mbedtls_mpi *s, const mbedtls_mpi *d,
256 const mbedtls_mpi *s);
/mbedtls-development/tests/data_files/
A Dserver2.ku-ka.crt13 XDBagBS0WuSls97SUva51aaVD+s+vMf9/6E/pD0wOzELMAkGA1UEBhMCTkwxETAP
16 OiE2xFh2UmuN/9hTK2CyW6MtBf8aG3l4jQDrsutHO0gUyoR67ug4yj+s+0S/zETZ
A Dcert_sha384.crt13 pjAfBgNVHSMEGDAWgBS0WuSls97SUva51aaVD+s+vMf9/zANBgkqhkiG9w0BAQwF
16 N/s/jphPVgjPwZiC1ZtOoD7WvSkIInB53j4Q3VCH6EpZxZuDO/u8CGBQ0g+9Eqhn
/mbedtls-development/programs/psa/
A Dpsa_constant_names.c29 int snprintf( char *s, size_t n, const char *fmt, ... ) in snprintf() argument
35 if( s == NULL || n == 0 || fmt == NULL ) in snprintf()
40 ret = _vsnprintf_s( s, n, _TRUNCATE, fmt, argp ); in snprintf()
42 ret = _vsnprintf( s, n, fmt, argp ); in snprintf()
45 s[n-1] = '\0'; in snprintf()
/mbedtls-development/tests/src/
A Dhelpers.c289 int mbedtls_test_read_mpi( mbedtls_mpi *X, int radix, const char *s ) in mbedtls_test_read_mpi() argument
293 if( s[0] == 0 ) in mbedtls_test_read_mpi()
299 return( mbedtls_mpi_read_string( X, radix, s ) ); in mbedtls_test_read_mpi()
/mbedtls-development/3rdparty/everest/library/
A Deverest.c75 mbedtls_x25519_ecdh_side s = side == MBEDTLS_EVEREST_ECDH_OURS ? in mbedtls_everest_get_params() local
78 return mbedtls_x25519_get_params( x25519_ctx, key, s ); in mbedtls_everest_get_params()
/mbedtls-development/.github/
A Dpull_request_template.md5 A few sentences describing the overall goals of the pull request's commits.
21 If there is any API change, what's the incentive and logic for it.
/mbedtls-development/
A D.pylintrc47 # locally, it's by design. There's no need to clutter the Pylint output
65 # it's because we think the code is clearer that way.
/mbedtls-development/3rdparty/everest/include/everest/kremlib/
A DFStar_UInt128.h48 FStar_UInt128_uint128 FStar_UInt128_shift_left(FStar_UInt128_uint128 a, uint32_t s);
50 FStar_UInt128_uint128 FStar_UInt128_shift_right(FStar_UInt128_uint128 a, uint32_t s);

Completed in 36 milliseconds

123456