diff --git a/library/pk.c b/library/pk.c index bb55a18fb..980256a25 100644 --- a/library/pk.c +++ b/library/pk.c @@ -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 );