Searched refs:pub (Results 1 – 12 of 12) sorted by relevance
/openthread-3.6.0/third_party/mbedtls/repo/library/ |
D | pk.c | 507 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv ) in mbedtls_pk_check_pair() argument 509 PK_VALIDATE_RET( pub != NULL ); in mbedtls_pk_check_pair() 512 if( pub->pk_info == NULL || in mbedtls_pk_check_pair() 523 if( pub->pk_info->type != MBEDTLS_PK_RSA ) 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()
|
D | pk_wrap.c | 156 static int rsa_check_pair_wrap( const void *pub, const void *prv ) in rsa_check_pair_wrap() argument 158 return( mbedtls_rsa_check_pub_priv( (const mbedtls_rsa_context *) pub, in rsa_check_pair_wrap() 384 static int eckey_check_pair( const void *pub, const void *prv ) in eckey_check_pair() argument 386 return( mbedtls_ecp_check_pub_priv( (const mbedtls_ecp_keypair *) pub, 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() 814 if( rsa_verify_wrap( (void *) pub, MBEDTLS_MD_NONE, in rsa_alt_check_pair()
|
D | ecp.c | 3355 int mbedtls_ecp_check_pub_priv( const mbedtls_ecp_keypair *pub, const mbedtls_ecp_keypair *prv ) in mbedtls_ecp_check_pub_priv() argument 3360 ECP_VALIDATE_RET( pub != NULL ); in mbedtls_ecp_check_pub_priv() 3363 if( pub->grp.id == MBEDTLS_ECP_DP_NONE || 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()
|
D | rsa.c | 693 int mbedtls_rsa_check_pub_priv( const mbedtls_rsa_context *pub, in mbedtls_rsa_check_pub_priv() argument 696 RSA_VALIDATE_RET( pub != NULL ); in mbedtls_rsa_check_pub_priv() 699 if( mbedtls_rsa_check_pubkey( pub ) != 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()
|
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_pk.function | 619 mbedtls_pk_context pub, prv, alt; 621 mbedtls_pk_init( &pub ); 625 TEST_ASSERT( mbedtls_pk_parse_public_keyfile( &pub, pub_file ) == 0 ); 628 TEST_ASSERT( mbedtls_pk_check_pair( &pub, &prv ) == ret ); 636 TEST_ASSERT( mbedtls_pk_check_pair( &pub, &alt ) == ret ); 640 mbedtls_pk_free( &pub ); 790 mbedtls_pk_context prv, pub; 798 mbedtls_pk_init( &pub ); 806 TEST_ASSERT( mbedtls_pk_setup( &pub, mbedtls_pk_info_from_type( pk_type ) ) == 0 ); 807 TEST_ASSERT( mbedtls_ecp_group_load( &mbedtls_pk_ec( pub )->grp, grp_id ) == 0 ); [all …]
|
D | test_suite_ecp.function | 1090 mbedtls_ecp_keypair pub, prv; 1092 mbedtls_ecp_keypair_init( &pub ); 1096 TEST_ASSERT( mbedtls_ecp_group_load( &pub.grp, id_pub ) == 0 ); 1097 TEST_ASSERT( mbedtls_ecp_point_read_string( &pub.Q, 16, Qx_pub, Qy_pub ) == 0 ); 1104 TEST_ASSERT( mbedtls_ecp_check_pub_priv( &pub, &prv ) == ret ); 1107 mbedtls_ecp_keypair_free( &pub );
|
D | test_suite_rsa.function | 1114 mbedtls_rsa_context pub, prv; 1116 mbedtls_rsa_init( &pub, MBEDTLS_RSA_PKCS_V15, 0 ); 1119 pub.len = mod / 8; 1124 TEST_ASSERT( mbedtls_test_read_mpi( &pub.N, radix_Npub, input_Npub ) == 0 ); 1128 TEST_ASSERT( mbedtls_test_read_mpi( &pub.E, radix_Epub, input_Epub ) == 0 ); 1170 TEST_ASSERT( mbedtls_rsa_check_pub_priv( &pub, &prv ) == result ); 1173 mbedtls_rsa_free( &pub );
|
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/ |
D | pk_internal.h | 88 int (*check_pair_func)( const void *pub, const void *prv );
|
D | rsa.h | 524 int mbedtls_rsa_check_pub_priv( const mbedtls_rsa_context *pub,
|
D | pk.h | 628 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv );
|
D | ecp.h | 1292 int mbedtls_ecp_check_pub_priv( const mbedtls_ecp_keypair *pub,
|
/openthread-3.6.0/third_party/mbedtls/repo/ |
D | ChangeLog | 3154 * Made buffer size in pk_write_(pub)key_pem() more dynamic, eg smaller if
|