Add forgotten #ifdef and depends_on
This commit is contained in:
parent
e707eb6df3
commit
dfab4c1193
3 changed files with 3 additions and 2 deletions
|
@ -108,6 +108,7 @@ int pk_init_ctx( pk_context *ctx, const pk_info_t *info )
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_RSA_C)
|
||||
/*
|
||||
* Set RSA padding
|
||||
*/
|
||||
|
@ -121,6 +122,7 @@ int pk_rsa_set_padding( pk_context *ctx, int padding, int hash_id )
|
|||
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* POLARSSL_RSA_C */
|
||||
|
||||
/*
|
||||
* Initialize an RSA-alt context
|
||||
|
|
|
@ -15,7 +15,6 @@ depends_on:POLARSSL_ECDSA_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
|
|||
pk_utils:POLARSSL_PK_ECDSA:192:24:"ECDSA"
|
||||
|
||||
PK RSA padding: RSA (ok)
|
||||
depends_on:POLARSSL_RSA_C
|
||||
pk_set_rsa_padding:POLARSSL_PK_RSA:RSA_PKCS_V21:POLARSSL_MD_SHA512:0
|
||||
|
||||
PK RSA padding: ECKEY (error)
|
||||
|
|
|
@ -54,7 +54,7 @@ void pk_utils( int type, int size, int len, char *name )
|
|||
}
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
/* BEGIN_CASE depends_on:POLARSSL_RSA_C */
|
||||
void pk_set_rsa_padding( int type, int padding, int hash_id, int ret )
|
||||
{
|
||||
pk_context pk;
|
||||
|
|
Loading…
Reference in a new issue