mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 23:05:38 +01:00
EC keys can have the type MBEDTLS_PK_ECKEY_DH too
This commit is contained in:
parent
f02b984f86
commit
e60b365a5e
@ -44,7 +44,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_ECP_C)
|
#if defined(MBEDTLS_ECP_C)
|
||||||
if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY )
|
if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY ||
|
||||||
|
mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY_DH )
|
||||||
{
|
{
|
||||||
mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk );
|
mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk );
|
||||||
mbedtls_ecp_group_id grp_id = ecp->grp.id;
|
mbedtls_ecp_group_id grp_id = ecp->grp.id;
|
||||||
|
@ -39,7 +39,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_ECP_C)
|
#if defined(MBEDTLS_ECP_C)
|
||||||
if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY )
|
if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY ||
|
||||||
|
mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY_DH )
|
||||||
{
|
{
|
||||||
mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk );
|
mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk );
|
||||||
mbedtls_ecp_group_id grp_id = ecp->grp.id;
|
mbedtls_ecp_group_id grp_id = ecp->grp.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user