Home
last modified time | relevance | path

Searched refs:R (Results 1 – 17 of 17) sorted by relevance

/net-tools-3.5.0/mbedtls-2.4.0/library/
Dsha1.c136 #define R(t) \ in mbedtls_sha1_process() macro
173 P( E, A, B, C, D, R(16) ); in mbedtls_sha1_process()
174 P( D, E, A, B, C, R(17) ); in mbedtls_sha1_process()
175 P( C, D, E, A, B, R(18) ); in mbedtls_sha1_process()
176 P( B, C, D, E, A, R(19) ); in mbedtls_sha1_process()
184 P( A, B, C, D, E, R(20) ); in mbedtls_sha1_process()
185 P( E, A, B, C, D, R(21) ); in mbedtls_sha1_process()
186 P( D, E, A, B, C, R(22) ); in mbedtls_sha1_process()
187 P( C, D, E, A, B, R(23) ); in mbedtls_sha1_process()
188 P( B, C, D, E, A, R(24) ); in mbedtls_sha1_process()
[all …]
Decp.c905 static int ecp_double_jac( const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, in ecp_double_jac() argument
968 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->X, &T ) ); in ecp_double_jac()
969 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->Y, &S ) ); in ecp_double_jac()
970 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->Z, &U ) ); in ecp_double_jac()
996 static int ecp_add_mixed( const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, in ecp_add_mixed() argument
1010 return( mbedtls_ecp_copy( R, Q ) ); in ecp_add_mixed()
1013 return( mbedtls_ecp_copy( R, P ) ); in ecp_add_mixed()
1036 ret = ecp_double_jac( grp, R, P ); in ecp_add_mixed()
1041 ret = mbedtls_ecp_set_zero( R ); in ecp_add_mixed()
1059 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->X, &X ) ); in ecp_add_mixed()
[all …]
Decdsa.c77 mbedtls_ecp_point R; in mbedtls_ecdsa_sign() local
84 mbedtls_ecp_point_init( &R ); in mbedtls_ecdsa_sign()
97 MBEDTLS_MPI_CHK( mbedtls_ecp_gen_keypair( grp, &k, &R, f_rng, p_rng ) ); in mbedtls_ecdsa_sign()
98 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( r, &R.X, &grp->N ) ); in mbedtls_ecdsa_sign()
151 mbedtls_ecp_point_free( &R ); in mbedtls_ecdsa_sign()
205 mbedtls_ecp_point R; in mbedtls_ecdsa_verify() local
207 mbedtls_ecp_point_init( &R ); in mbedtls_ecdsa_verify()
251 MBEDTLS_MPI_CHK( mbedtls_ecp_muladd( grp, &R, &u1, &grp->G, &u2, Q ) ); in mbedtls_ecdsa_verify()
253 if( mbedtls_ecp_is_zero( &R ) ) in mbedtls_ecdsa_verify()
263 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &R.X, &R.X, &grp->N ) ); in mbedtls_ecdsa_verify()
[all …]
Dsha256.c169 #define R(t) \ macro
197 R( i ); in mbedtls_sha256_process()
222 P( A[0], A[1], A[2], A[3], A[4], A[5], A[6], A[7], R(i+0), K[i+0] ); in mbedtls_sha256_process()
223 P( A[7], A[0], A[1], A[2], A[3], A[4], A[5], A[6], R(i+1), K[i+1] ); in mbedtls_sha256_process()
224 P( A[6], A[7], A[0], A[1], A[2], A[3], A[4], A[5], R(i+2), K[i+2] ); in mbedtls_sha256_process()
225 P( A[5], A[6], A[7], A[0], A[1], A[2], A[3], A[4], R(i+3), K[i+3] ); in mbedtls_sha256_process()
226 P( A[4], A[5], A[6], A[7], A[0], A[1], A[2], A[3], R(i+4), K[i+4] ); in mbedtls_sha256_process()
227 P( A[3], A[4], A[5], A[6], A[7], A[0], A[1], A[2], R(i+5), K[i+5] ); in mbedtls_sha256_process()
228 P( A[2], A[3], A[4], A[5], A[6], A[7], A[0], A[1], R(i+6), K[i+6] ); in mbedtls_sha256_process()
229 P( A[1], A[2], A[3], A[4], A[5], A[6], A[7], A[0], R(i+7), K[i+7] ); in mbedtls_sha256_process()
Dbignum.c1317 int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B… in mbedtls_mpi_div_mpi() argument
1332 if( R != NULL ) MBEDTLS_MPI_CHK( mbedtls_mpi_copy( R, A ) ); in mbedtls_mpi_div_mpi()
1411 if( R != NULL ) in mbedtls_mpi_div_mpi()
1415 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( R, &X ) ); in mbedtls_mpi_div_mpi()
1417 if( mbedtls_mpi_cmp_int( R, 0 ) == 0 ) in mbedtls_mpi_div_mpi()
1418 R->s = 1; in mbedtls_mpi_div_mpi()
1432 int mbedtls_mpi_div_int( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, mbedtls_mpi_sint b ) in mbedtls_mpi_div_int() argument
1442 return( mbedtls_mpi_div_mpi( Q, R, A, &_B ) ); in mbedtls_mpi_div_int()
1448 int mbedtls_mpi_mod_mpi( mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_mod_mpi() argument
1455 MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( NULL, R, A, B ) ); in mbedtls_mpi_mod_mpi()
[all …]
Decjpake.c528 static int ecjpake_ecp_add3( mbedtls_ecp_group *grp, mbedtls_ecp_point *R, in ecjpake_ecp_add3() argument
539 MBEDTLS_MPI_CHK( mbedtls_ecp_muladd( grp, R, &one, A, &one, B ) ); in ecjpake_ecp_add3()
540 MBEDTLS_MPI_CHK( mbedtls_ecp_muladd( grp, R, &one, R, &one, C ) ); in ecjpake_ecp_add3()
609 static int ecjpake_mul_secret( mbedtls_mpi *R, int sign, in ecjpake_mul_secret() argument
627 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( R, X, &b ) ); in ecjpake_mul_secret()
628 R->s *= sign; in ecjpake_mul_secret()
629 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( R, R, N ) ); in ecjpake_mul_secret()
Decp_curves.c1215 mbedtls_mpi M, R; in ecp_mod_koblitz() local
1222 R.s = 1; in ecp_mod_koblitz()
1223 R.p = Rp; in ecp_mod_koblitz()
1224 R.n = P_KOBLITZ_R; in ecp_mod_koblitz()
1238 M.n += R.n - adjust; /* Make room for multiplication by R */ in ecp_mod_koblitz()
1247 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &M, &M, &R ) ); in ecp_mod_koblitz()
1260 M.n += R.n - adjust; /* Make room for multiplication by R */ in ecp_mod_koblitz()
1269 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &M, &M, &R ) ); in ecp_mod_koblitz()
/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_ecp.function59 mbedtls_ecp_point R;
63 mbedtls_ecp_group_init( &grp ); mbedtls_ecp_point_init( &R );
81 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dA, &grp.G,
83 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.X, &xA ) == 0 );
84 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.Y, &yA ) == 0 );
85 TEST_ASSERT( mbedtls_ecp_check_pubkey( &grp, &R ) == 0 );
86 TEST_ASSERT( mbedtls_ecp_mul( &grp, &R, &dB, &R, NULL, NULL ) == 0 );
87 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.X, &xZ ) == 0 );
88 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R.Y, &yZ ) == 0 );
89 TEST_ASSERT( mbedtls_ecp_check_pubkey( &grp, &R ) == 0 );
[all …]
Dtest_suite_mpi.function648 mbedtls_mpi X, Y, Q, R, A, B;
650 mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y ); mbedtls_mpi_init( &Q ); mbedtls_mpi_init( &R );
657 res = mbedtls_mpi_div_mpi( &Q, &R, &X, &Y );
662 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R, &B ) == 0 );
666 mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Y ); mbedtls_mpi_free( &Q ); mbedtls_mpi_free( &R );
675 mbedtls_mpi X, Q, R, A, B;
677 mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Q ); mbedtls_mpi_init( &R ); mbedtls_mpi_init( &A );
683 res = mbedtls_mpi_div_int( &Q, &R, &X, input_Y );
688 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &R, &B ) == 0 );
692 mbedtls_mpi_free( &X ); mbedtls_mpi_free( &Q ); mbedtls_mpi_free( &R ); mbedtls_mpi_free( &A );
/net-tools-3.5.0/mbedtls-2.4.0/tests/data_files/
DReadme-x509.txt43 - key type: R -> RSA, E -> EC
51 - cert_example_multi*.crt: 1/O R: subjectAltName
52 - cert_example_wildcard.crt: 1 R: wildcard in subject's CN
53 - cert_md*.crt, cert_sha*.crt: 1 R: signature hash
54 - cert_v1_with_ext.crt: 1 R: v1 with extensions (illegal)
57 - server1*.crt: 1* R C* P1*: misc *(server1-v1 see test-ca-v1.crt above)
60 - server2-v1*.crt: O R: see test-ca-v1.crt above
61 - server2*.crt: 1 R L: misc
63 - server4.crt: 2 R L: RSA cert signed by EC CA
73 - server8*.crt: I2 R L: RSA signed by EC signed by RSA (P1 for _int-ca2)
[all …]
Dpkcs8_pbe_sha1_3des.key8 R+snSlbOZMzCpUIvcuVkEMBP8+89/BtIabXL8SoTsD6v/f/YJfcw9qpOH+AoA3JG
/net-tools-3.5.0/mbedtls-2.4.0/include/mbedtls/
Dbignum.h566 int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B…
582 int mbedtls_mpi_div_int( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, mbedtls_mpi_sint b );
596 int mbedtls_mpi_mod_mpi( mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B );
Decp.h521 int mbedtls_ecp_mul( mbedtls_ecp_group *grp, mbedtls_ecp_point *R,
545 int mbedtls_ecp_muladd( mbedtls_ecp_group *grp, mbedtls_ecp_point *R,
/net-tools-3.5.0/
Dclient_privkey.pem24 R/nQyGECgYEA9FbyUfUj9FLQxHc2thqhq4IO5Dywv/Iiu9Crkw49a/htuvGLs1TU
Dhttps-server.pem15 HA+R+A7K/pluymWCZLTRRX0LapCFKAP/80msl9zW/nrxZAEXgRxJ1YdE+XUnAXxs
/net-tools-3.5.0/tinydtls-0.8.2/sha2/
Dsha2.c221 #define R(b,x) ((x) >> (b)) macro
234 #define sigma0_256(x) (S32(7, (x)) ^ S32(18, (x)) ^ R(3 , (x)))
235 #define sigma1_256(x) (S32(17, (x)) ^ S32(19, (x)) ^ R(10, (x)))
240 #define sigma0_512(x) (S64( 1, (x)) ^ S64( 8, (x)) ^ R( 7, (x)))
241 #define sigma1_512(x) (S64(19, (x)) ^ S64(61, (x)) ^ R( 6, (x)))
/net-tools-3.5.0/mbedtls-2.4.0/
DChangeLog1411 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
1540 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
2065 * Fixed a bug reported by Adrian Rüegsegger in x509_read_key