mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 20:55:36 +01:00
Add a check for an RSA_ALT key in check_pair
This commit is contained in:
parent
b60dc2d21e
commit
8fb94311e9
@ -329,7 +329,8 @@ int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_conte
|
||||
return( MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE );
|
||||
}
|
||||
|
||||
if( prv->pk_info->type != MBEDTLS_PK_OPAQUE )
|
||||
if( prv->pk_info->type != MBEDTLS_PK_RSA_ALT &&
|
||||
prv->pk_info->type != MBEDTLS_PK_OPAQUE )
|
||||
{
|
||||
if( pub->pk_info != prv->pk_info )
|
||||
return( MBEDTLS_ERR_PK_TYPE_MISMATCH );
|
||||
|
Loading…
Reference in New Issue
Block a user