Searched refs:pub (Results 1 – 13 of 13) sorted by relevance
/net-tools-2.7.6/mbedtls-2.4.0/library/ |
D | pk.c | 303 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv ) in mbedtls_pk_check_pair() argument 305 if( pub == NULL || pub->pk_info == NULL || in mbedtls_pk_check_pair() 314 if( pub->pk_info->type != MBEDTLS_PK_RSA ) in mbedtls_pk_check_pair() 319 if( pub->pk_info != prv->pk_info ) in mbedtls_pk_check_pair() 323 return( prv->pk_info->check_pair_func( pub->pk_ctx, prv->pk_ctx ) ); in mbedtls_pk_check_pair()
|
D | pk_wrap.c | 128 static int rsa_check_pair_wrap( const void *pub, const void *prv ) in rsa_check_pair_wrap() argument 130 return( mbedtls_rsa_check_pub_priv( (const mbedtls_rsa_context *) pub, in rsa_check_pair_wrap() 244 static int eckey_check_pair( const void *pub, const void *prv ) in eckey_check_pair() argument 246 return( mbedtls_ecp_check_pub_priv( (const mbedtls_ecp_keypair *) pub, in eckey_check_pair() 429 static int rsa_alt_check_pair( const void *pub, const void *prv ) in rsa_alt_check_pair() argument 436 if( rsa_alt_get_bitlen( prv ) != rsa_get_bitlen( pub ) ) in rsa_alt_check_pair() 448 if( rsa_verify_wrap( (void *) pub, MBEDTLS_MD_NONE, in rsa_alt_check_pair()
|
D | ecp.c | 1922 int mbedtls_ecp_check_pub_priv( const mbedtls_ecp_keypair *pub, const mbedtls_ecp_keypair *prv ) in mbedtls_ecp_check_pub_priv() argument 1928 if( pub->grp.id == MBEDTLS_ECP_DP_NONE || in mbedtls_ecp_check_pub_priv() 1929 pub->grp.id != prv->grp.id || in mbedtls_ecp_check_pub_priv() 1930 mbedtls_mpi_cmp_mpi( &pub->Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv() 1931 mbedtls_mpi_cmp_mpi( &pub->Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv() 1932 mbedtls_mpi_cmp_mpi( &pub->Q.Z, &prv->Q.Z ) ) in mbedtls_ecp_check_pub_priv()
|
D | rsa.c | 258 int mbedtls_rsa_check_pub_priv( const mbedtls_rsa_context *pub, const mbedtls_rsa_context *prv ) in mbedtls_rsa_check_pub_priv() argument 260 if( mbedtls_rsa_check_pubkey( pub ) != 0 || in mbedtls_rsa_check_pub_priv() 266 if( mbedtls_mpi_cmp_mpi( &pub->N, &prv->N ) != 0 || in mbedtls_rsa_check_pub_priv() 267 mbedtls_mpi_cmp_mpi( &pub->E, &prv->E ) != 0 ) in mbedtls_rsa_check_pub_priv()
|
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/ |
D | pk_internal.h | 74 int (*check_pair_func)( const void *pub, const void *prv );
|
D | rsa.h | 197 int mbedtls_rsa_check_pub_priv( const mbedtls_rsa_context *pub, const mbedtls_rsa_context *prv );
|
D | ecp.h | 654 int mbedtls_ecp_check_pub_priv( const mbedtls_ecp_keypair *pub, const mbedtls_ecp_keypair *prv );
|
D | pk.h | 400 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv );
|
/net-tools-2.7.6/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ecp.function | 438 mbedtls_ecp_keypair pub, prv; 440 mbedtls_ecp_keypair_init( &pub ); 444 TEST_ASSERT( mbedtls_ecp_group_load( &pub.grp, id_pub ) == 0 ); 445 TEST_ASSERT( mbedtls_ecp_point_read_string( &pub.Q, 16, Qx_pub, Qy_pub ) == 0 ); 452 TEST_ASSERT( mbedtls_ecp_check_pub_priv( &pub, &prv ) == ret ); 455 mbedtls_ecp_keypair_free( &pub );
|
D | test_suite_pk.function | 90 mbedtls_pk_context pub, prv, alt; 92 mbedtls_pk_init( &pub ); 96 TEST_ASSERT( mbedtls_pk_parse_public_keyfile( &pub, pub_file ) == 0 ); 99 TEST_ASSERT( mbedtls_pk_check_pair( &pub, &prv ) == ret ); 106 TEST_ASSERT( mbedtls_pk_check_pair( &pub, &alt ) == ret ); 110 mbedtls_pk_free( &pub );
|
D | test_suite_rsa.function | 603 mbedtls_rsa_context pub, prv; 605 mbedtls_rsa_init( &pub, MBEDTLS_RSA_PKCS_V15, 0 ); 608 pub.len = mod / 8; 613 TEST_ASSERT( mbedtls_mpi_read_string( &pub.N, radix_Npub, input_Npub ) == 0 ); 617 TEST_ASSERT( mbedtls_mpi_read_string( &pub.E, radix_Epub, input_Epub ) == 0 ); 653 TEST_ASSERT( mbedtls_rsa_check_pub_priv( &pub, &prv ) == result ); 656 mbedtls_rsa_free( &pub );
|
D | test_suite_pkparse.data | 107 pk_parse_public_keyfile_rsa:"data_files/format_gen.pub":0
|
/net-tools-2.7.6/mbedtls-2.4.0/ |
D | ChangeLog | 717 * Made buffer size in pk_write_(pub)key_pem() more dynamic, eg smaller if
|