Home
last modified time | relevance | path

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

/openthread-3.6.0/third_party/mbedtls/repo/library/
Dssl_cache.c146 mbedtls_ssl_cache_entry *cur, *prv; in mbedtls_ssl_cache_set() local
155 prv = NULL; in mbedtls_ssl_cache_set()
181 prv = cur; in mbedtls_ssl_cache_set()
217 prv->next = cur; in mbedtls_ssl_cache_set()
232 if( prv == NULL ) in mbedtls_ssl_cache_set()
235 prv->next = cur; in mbedtls_ssl_cache_set()
320 mbedtls_ssl_cache_entry *cur, *prv; in mbedtls_ssl_cache_free() local
326 prv = cur; in mbedtls_ssl_cache_free()
329 mbedtls_ssl_session_free( &prv->session ); in mbedtls_ssl_cache_free()
333 mbedtls_free( prv->peer_cert.p ); in mbedtls_ssl_cache_free()
[all …]
Dpk.c507 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv ) in mbedtls_pk_check_pair() argument
510 PK_VALIDATE_RET( prv != NULL ); in mbedtls_pk_check_pair()
513 prv->pk_info == NULL ) in mbedtls_pk_check_pair()
518 if( prv->pk_info->check_pair_func == NULL ) in mbedtls_pk_check_pair()
521 if( prv->pk_info->type == MBEDTLS_PK_RSA_ALT ) in mbedtls_pk_check_pair()
528 if( pub->pk_info != prv->pk_info ) in mbedtls_pk_check_pair()
532 return( prv->pk_info->check_pair_func( pub->pk_ctx, prv->pk_ctx ) ); in mbedtls_pk_check_pair()
Dpk_wrap.c156 static int rsa_check_pair_wrap( const void *pub, const void *prv ) in rsa_check_pair_wrap() argument
159 (const mbedtls_rsa_context *) prv ) ); in rsa_check_pair_wrap()
384 static int eckey_check_pair( const void *pub, const void *prv ) in eckey_check_pair() argument
387 (const mbedtls_ecp_keypair *) prv ) ); in eckey_check_pair()
795 static int rsa_alt_check_pair( const void *pub, const void *prv ) in rsa_alt_check_pair() argument
802 if( rsa_alt_get_bitlen( prv ) != rsa_get_bitlen( pub ) ) in rsa_alt_check_pair()
807 if( ( ret = rsa_alt_sign_wrap( (void *) prv, MBEDTLS_MD_NONE, in rsa_alt_check_pair()
Ddes.c866 unsigned char prv[8]; in mbedtls_des_self_test() local
963 memcpy( prv, des3_test_iv, 8 ); in mbedtls_des_self_test()
1023 memcpy( tmp, prv, 8 ); in mbedtls_des_self_test()
1024 memcpy( prv, buf, 8 ); in mbedtls_des_self_test()
1028 memcpy( buf, prv, 8 ); in mbedtls_des_self_test()
Dmemory_buffer_alloc.c175 memory_header *prv = heap.first, *cur; in verify_chain() local
177 if( prv == NULL || verify_header( prv ) != 0 ) in verify_chain()
208 if( cur->prev != prv ) in verify_chain()
217 prv = cur; in verify_chain()
Decp.c3355 int mbedtls_ecp_check_pub_priv( const mbedtls_ecp_keypair *pub, const mbedtls_ecp_keypair *prv ) in mbedtls_ecp_check_pub_priv() argument
3361 ECP_VALIDATE_RET( prv != NULL ); in mbedtls_ecp_check_pub_priv()
3364 pub->grp.id != prv->grp.id || in mbedtls_ecp_check_pub_priv()
3365 mbedtls_mpi_cmp_mpi( &pub->Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv()
3366 mbedtls_mpi_cmp_mpi( &pub->Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
3367 mbedtls_mpi_cmp_mpi( &pub->Q.Z, &prv->Q.Z ) ) in mbedtls_ecp_check_pub_priv()
3376 mbedtls_ecp_group_copy( &grp, &prv->grp ); in mbedtls_ecp_check_pub_priv()
3379 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &Q, &prv->d, &prv->grp.G, NULL, NULL ) ); in mbedtls_ecp_check_pub_priv()
3381 if( mbedtls_mpi_cmp_mpi( &Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv()
3382 mbedtls_mpi_cmp_mpi( &Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
[all …]
Drsa.c694 const mbedtls_rsa_context *prv ) in mbedtls_rsa_check_pub_priv() argument
697 RSA_VALIDATE_RET( prv != NULL ); in mbedtls_rsa_check_pub_priv()
700 mbedtls_rsa_check_privkey( prv ) != 0 ) in mbedtls_rsa_check_pub_priv()
705 if( mbedtls_mpi_cmp_mpi( &pub->N, &prv->N ) != 0 || in mbedtls_rsa_check_pub_priv()
706 mbedtls_mpi_cmp_mpi( &pub->E, &prv->E ) != 0 ) in mbedtls_rsa_check_pub_priv()
Daes.c1777 unsigned char prv[16]; in mbedtls_aes_self_test() local
1871 memset( prv, 0, 16 ); in mbedtls_aes_self_test()
1906 memcpy( tmp, prv, 16 ); in mbedtls_aes_self_test()
1907 memcpy( prv, buf, 16 ); in mbedtls_aes_self_test()
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_pk.function619 mbedtls_pk_context pub, prv, alt;
622 mbedtls_pk_init( &prv );
626 TEST_ASSERT( mbedtls_pk_parse_keyfile( &prv, prv_file, NULL ) == 0 );
628 TEST_ASSERT( mbedtls_pk_check_pair( &pub, &prv ) == ret );
631 if( mbedtls_pk_get_type( &prv ) == MBEDTLS_PK_RSA )
633 TEST_ASSERT( mbedtls_pk_setup_rsa_alt( &alt, mbedtls_pk_rsa( prv ),
641 mbedtls_pk_free( &prv );
790 mbedtls_pk_context prv, pub;
797 mbedtls_pk_init( &prv );
802 TEST_ASSERT( mbedtls_pk_setup( &prv, mbedtls_pk_info_from_type( pk_type ) ) == 0 );
[all …]
Dtest_suite_rsa.function1114 mbedtls_rsa_context pub, prv;
1117 mbedtls_rsa_init( &prv, MBEDTLS_RSA_PKCS_V15, 0 );
1120 prv.len = mod / 8;
1133 TEST_ASSERT( mbedtls_test_read_mpi( &prv.P, radix_P, input_P ) == 0 );
1137 TEST_ASSERT( mbedtls_test_read_mpi( &prv.Q, radix_Q, input_Q ) == 0 );
1141 TEST_ASSERT( mbedtls_test_read_mpi( &prv.N, radix_N, input_N ) == 0 );
1145 TEST_ASSERT( mbedtls_test_read_mpi( &prv.E, radix_E, input_E ) == 0 );
1149 TEST_ASSERT( mbedtls_test_read_mpi( &prv.D, radix_D, input_D ) == 0 );
1154 TEST_ASSERT( mbedtls_test_read_mpi( &prv.DP, radix_DP, input_DP ) == 0 );
1158 TEST_ASSERT( mbedtls_test_read_mpi( &prv.DQ, radix_DQ, input_DQ ) == 0 );
[all …]
Dtest_suite_ecp.function1090 mbedtls_ecp_keypair pub, prv;
1093 mbedtls_ecp_keypair_init( &prv );
1100 TEST_ASSERT( mbedtls_ecp_group_load( &prv.grp, id ) == 0 );
1101 TEST_ASSERT( mbedtls_ecp_point_read_string( &prv.Q, 16, Qx, Qy ) == 0 );
1102 TEST_ASSERT( mbedtls_test_read_mpi( &prv.d, 16, d ) == 0 );
1104 TEST_ASSERT( mbedtls_ecp_check_pub_priv( &pub, &prv ) == ret );
1108 mbedtls_ecp_keypair_free( &prv );
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/
Dpk_internal.h88 int (*check_pair_func)( const void *pub, const void *prv );
Drsa.h525 const mbedtls_rsa_context *prv );
Dpk.h628 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv );
Decp.h1293 const mbedtls_ecp_keypair *prv );