| /device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0/library/ |
| D | rsa_alt_helpers.c | 91 if( mbedtls_mpi_cmp_int( N, 0 ) <= 0 || in mbedtls_rsa_deduce_primes() 92 mbedtls_mpi_cmp_int( D, 1 ) <= 0 || in mbedtls_rsa_deduce_primes() 94 mbedtls_mpi_cmp_int( E, 1 ) <= 0 || in mbedtls_rsa_deduce_primes() 135 if( mbedtls_mpi_cmp_int( P, 1 ) != 0 ) in mbedtls_rsa_deduce_primes() 148 if( mbedtls_mpi_cmp_int( &K, 1 ) == 0 ) in mbedtls_rsa_deduce_primes() 154 if( mbedtls_mpi_cmp_int( P, 1 ) == 1 && in mbedtls_rsa_deduce_primes() 178 if( mbedtls_mpi_cmp_int( &K, 1 ) != 0 ) in mbedtls_rsa_deduce_primes() 205 if( D == NULL || mbedtls_mpi_cmp_int( D, 0 ) != 0 ) in mbedtls_rsa_deduce_private_exponent() 208 if( mbedtls_mpi_cmp_int( P, 1 ) <= 0 || in mbedtls_rsa_deduce_private_exponent() 209 mbedtls_mpi_cmp_int( Q, 1 ) <= 0 || in mbedtls_rsa_deduce_private_exponent() [all …]
|
| D | rsa.c | 167 if( mbedtls_mpi_cmp_int( &ctx->N, 0 ) <= 0 || in rsa_check_context() 178 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context() 180 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 || in rsa_check_context() 192 if( mbedtls_mpi_cmp_int( &ctx->E, 0 ) <= 0 ) in rsa_check_context() 198 if( is_priv && mbedtls_mpi_cmp_int( &ctx->D, 0 ) <= 0 ) in rsa_check_context() 202 ( mbedtls_mpi_cmp_int( &ctx->DP, 0 ) <= 0 || in rsa_check_context() 203 mbedtls_mpi_cmp_int( &ctx->DQ, 0 ) <= 0 ) ) in rsa_check_context() 214 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context() 215 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 ) ) in rsa_check_context() 225 mbedtls_mpi_cmp_int( &ctx->QP, 0 ) <= 0 ) in rsa_check_context() [all …]
|
| D | bignum.c | 541 } while( mbedtls_mpi_cmp_int( X, 0 ) != 0 ); in mpi_write_hlp() 1167 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z ) in mbedtls_mpi_cmp_int() function 1739 if( mbedtls_mpi_cmp_int( B, 0 ) == 0 ) in mbedtls_mpi_div_mpi() 1820 if( mbedtls_mpi_cmp_int( &X, 0 ) < 0 ) in mbedtls_mpi_div_mpi() 1841 if( mbedtls_mpi_cmp_int( R, 0 ) == 0 ) in mbedtls_mpi_div_mpi() 1883 if( mbedtls_mpi_cmp_int( B, 0 ) < 0 ) in mbedtls_mpi_mod_mpi() 1895 while( mbedtls_mpi_cmp_int( R, 0 ) < 0 ) in mbedtls_mpi_mod_mpi() 2120 if( mbedtls_mpi_cmp_int( N, 0 ) <= 0 || ( N->p[0] & 1 ) == 0 ) in mbedtls_mpi_exp_mod() 2123 if( mbedtls_mpi_cmp_int( E, 0 ) < 0 ) in mbedtls_mpi_exp_mod() 2484 while( mbedtls_mpi_cmp_int( &TA, 0 ) != 0 ) in mbedtls_mpi_gcd() [all …]
|
| D | ecp.c | 678 return( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ); in mbedtls_ecp_is_zero() 755 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in mbedtls_ecp_point_write_binary() 1035 if( ( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) || in ecp_modp() 1044 while( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) in ecp_modp() 1098 while( (N).s < 0 && mbedtls_mpi_cmp_int( &(N), 0 ) != 0 ) \ 1173 if( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ) in ecp_normalize_jac() 1329 nonzero = mbedtls_mpi_cmp_int( &Q->Y, 0 ) != 0; in ecp_safe_invert_jac() 1389 if( mbedtls_mpi_cmp_int( &grp->A, 0 ) != 0 ) in ecp_double_jac() 1473 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in ecp_add_mixed() 1476 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 0 ) == 0 ) in ecp_add_mixed() [all …]
|
| D | ecdsa.c | 285 if( mbedtls_mpi_cmp_int( d, 1 ) < 0 || mbedtls_mpi_cmp_mpi( d, &grp->N ) >= 0 ) in ecdsa_sign_restartable() 346 while( mbedtls_mpi_cmp_int( pr, 0 ) == 0 ); in ecdsa_sign_restartable() 384 while( mbedtls_mpi_cmp_int( s, 0 ) == 0 ); in ecdsa_sign_restartable() 614 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in ecdsa_verify_restartable() 615 mbedtls_mpi_cmp_int( s, 1 ) < 0 || mbedtls_mpi_cmp_mpi( s, &grp->N ) >= 0 ) in ecdsa_verify_restartable()
|
| D | dhm.c | 110 if( mbedtls_mpi_cmp_int( param, 2 ) < 0 || in dhm_check_range() 212 if( mbedtls_mpi_cmp_int( &ctx->P, 0 ) == 0 ) in dhm_make_common() 397 if( mbedtls_mpi_cmp_int( &ctx->Vi, 1 ) != 0 ) in dhm_update_blinding()
|
| D | pkparse.c | 699 if( mbedtls_mpi_cmp_int( X, 0 ) == 0 ) in asn1_get_nonzero_mpi()
|
| D | psa_crypto.c | 1145 if( mbedtls_mpi_cmp_int( &mpi, 65537 ) == 0 ) in psa_get_rsa_public_exponent()
|
| /device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0/harden/src/connect_src/ |
| D | rsa.c | 175 if( mbedtls_mpi_cmp_int( &ctx->N, 0 ) <= 0 || in rsa_check_context() 186 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context() 188 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 || in rsa_check_context() 200 if( mbedtls_mpi_cmp_int( &ctx->E, 0 ) <= 0 ) in rsa_check_context() 206 if( is_priv && mbedtls_mpi_cmp_int( &ctx->D, 0 ) <= 0 ) in rsa_check_context() 210 ( mbedtls_mpi_cmp_int( &ctx->DP, 0 ) <= 0 || in rsa_check_context() 211 mbedtls_mpi_cmp_int( &ctx->DQ, 0 ) <= 0 ) ) in rsa_check_context() 222 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context() 223 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 ) ) in rsa_check_context() 233 mbedtls_mpi_cmp_int( &ctx->QP, 0 ) <= 0 ) in rsa_check_context() [all …]
|
| /device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0/programs/fuzz/ |
| D | fuzz_pubkey.c | 59 if( mbedtls_mpi_cmp_int( &ecp->d, 0 ) != 0 ) in LLVMFuzzerTestOneInput()
|
| /device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0/tests/suites/ |
| D | test_suite_mpi.data | 160 Base test mbedtls_mpi_cmp_int #1 161 mbedtls_mpi_cmp_int:693:693:0 163 Base test mbedtls_mpi_cmp_int #2 164 mbedtls_mpi_cmp_int:693:692:1 166 Base test mbedtls_mpi_cmp_int #3 167 mbedtls_mpi_cmp_int:693:694:-1 169 Base test mbedtls_mpi_cmp_int (Negative values) #1 170 mbedtls_mpi_cmp_int:-2:-2:0 172 Base test mbedtls_mpi_cmp_int (Negative values) #2 173 mbedtls_mpi_cmp_int:-2:-3:1 [all …]
|
| D | test_suite_dhm.function | 62 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->X, 1 ) > 0 ); 65 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->GX, 1 ) > 0 );
|
| D | test_suite_mpi.function | 433 void mbedtls_mpi_cmp_int( int input_X, int input_A, int result_CMP ) 439 TEST_ASSERT( mbedtls_mpi_cmp_int( &X, input_A ) == result_CMP); 688 TEST_ASSERT( mbedtls_mpi_cmp_int( &X, 0 ) == 0 ); 1312 TEST_ASSERT( mbedtls_mpi_cmp_int( &result, min ) >= 0 ); 1394 TEST_ASSERT( mbedtls_mpi_cmp_int( &result, min ) >= 0 );
|
| D | test_suite_ecp.function | 593 TEST_ASSERT( mbedtls_mpi_cmp_int( &Y, 0 ) == 0 ); 595 TEST_ASSERT( mbedtls_mpi_cmp_int( &Z, 1 ) == 0 ); 596 TEST_ASSERT( mbedtls_mpi_cmp_int( &P.Z, 1 ) == 0 );
|
| D | test_suite_asn1parse.function | 355 TEST_EQUAL( mbedtls_mpi_cmp_int( &actual_mpi, 0 ), 0 );
|
| /device/soc/hisilicon/ws63v100/sdk/application/samples/wifi/ohos_connect/hilink_adapt/adapter/ |
| D | hilink_sal_mpi.c | 68 return mbedtls_mpi_cmp_int(x, z); in HILINK_SAL_MpiCmpInt()
|
| /device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0/harden/src/ |
| D | bignum_harden.c | 146 …if ( A->MBEDTLS_PRIVATE(s) < 0 || mbedtls_mpi_cmp_int( B, 0 ) == 0 || size_max > DRV_PKE_LEN_4096 ) in check_mod_harden_can_do()
|
| /device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
| D | bignum.h | 590 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
|
| D | compat-1.3.h | 2055 #define mpi_cmp_int mbedtls_mpi_cmp_int
|
| /device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0/include/mbedtls/ |
| D | bignum.h | 628 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
|
| /device/soc/hisilicon/ws63v100/sdk/open_source/wpa_supplicant/liteos_wpa_src/ |
| D | crypto_mbedtls.c | 653 } while (mbedtls_mpi_cmp_int(r, 1 ) < 0 || cmp != 1); in crypto_bignum_rand() 786 return (mbedtls_mpi_cmp_int((const mbedtls_mpi *)a, 0) == 0) ? 1 : 0; in crypto_bignum_is_zero() 793 return (mbedtls_mpi_cmp_int((const mbedtls_mpi *)a, 1) == 0) ? 1 : 0; in crypto_bignum_is_one()
|
| /device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/mbedtls_prepare/ |
| D | hisi_mbedtls-2.16.10.patch | 1608 if( mbedtls_mpi_cmp_int( &G, 1 ) != 0 )
|