Changed the static function name in openssl_rsa_public_key object

Removed unused chunk variable from PTS verify_quote_signature function
This commit is contained in:
Sansar Choinyambuu
2011-11-28 14:39:53 +01:00
committed by Andreas Steffen
parent 2b28a13182
commit 71741df078
4 changed files with 21 additions and 23 deletions
@@ -119,7 +119,7 @@ error:
/**
* Verification of an EMPSA PKCS1 signature described in PKCS#1
*/
static bool verify_rsa_signature(private_openssl_rsa_public_key_t *this,
static bool verify_signature(private_openssl_rsa_public_key_t *this,
int type, chunk_t data, chunk_t signature)
{
bool valid = FALSE;
@@ -187,7 +187,7 @@ METHOD(public_key_t, verify, bool,
switch (scheme)
{
case SIGN_RSA_SHA1:
return verify_rsa_signature(this, NID_sha1, data, signature);
return verify_signature(this, NID_sha1, data, signature);
case SIGN_RSA_EMSA_PKCS1_NULL:
return verify_emsa_pkcs1_signature(this, NID_undef, data, signature);
case SIGN_RSA_EMSA_PKCS1_SHA1:
@@ -448,4 +448,3 @@ openssl_rsa_public_key_t *openssl_rsa_public_key_load(key_type_t type,
destroy(this);
return NULL;
}