Fix const-correctness of rsa_*_verify()

This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-12 11:34:35 +02:00
parent f84b4d6498
commit cc0a9d040d
2 changed files with 6 additions and 6 deletions

View File

@ -451,7 +451,7 @@ int rsa_pkcs1_verify( rsa_context *ctx,
md_type_t md_alg, md_type_t md_alg,
unsigned int hashlen, unsigned int hashlen,
const unsigned char *hash, const unsigned char *hash,
unsigned char *sig ); const unsigned char *sig );
/** /**
* \brief Perform a PKCS#1 v1.5 verification (RSASSA-PKCS1-v1_5-VERIFY) * \brief Perform a PKCS#1 v1.5 verification (RSASSA-PKCS1-v1_5-VERIFY)
@ -474,7 +474,7 @@ int rsa_rsassa_pkcs1_v15_verify( rsa_context *ctx,
md_type_t md_alg, md_type_t md_alg,
unsigned int hashlen, unsigned int hashlen,
const unsigned char *hash, const unsigned char *hash,
unsigned char *sig ); const unsigned char *sig );
/** /**
* \brief Perform a PKCS#1 v2.1 PSS verification (RSASSA-PSS-VERIFY) * \brief Perform a PKCS#1 v2.1 PSS verification (RSASSA-PSS-VERIFY)
@ -504,7 +504,7 @@ int rsa_rsassa_pss_verify( rsa_context *ctx,
md_type_t md_alg, md_type_t md_alg,
unsigned int hashlen, unsigned int hashlen,
const unsigned char *hash, const unsigned char *hash,
unsigned char *sig ); const unsigned char *sig );
/** /**
* \brief Free the components of an RSA key * \brief Free the components of an RSA key

View File

@ -953,7 +953,7 @@ int rsa_rsassa_pss_verify( rsa_context *ctx,
md_type_t md_alg, md_type_t md_alg,
unsigned int hashlen, unsigned int hashlen,
const unsigned char *hash, const unsigned char *hash,
unsigned char *sig ) const unsigned char *sig )
{ {
int ret; int ret;
size_t siglen; size_t siglen;
@ -1063,7 +1063,7 @@ int rsa_rsassa_pkcs1_v15_verify( rsa_context *ctx,
md_type_t md_alg, md_type_t md_alg,
unsigned int hashlen, unsigned int hashlen,
const unsigned char *hash, const unsigned char *hash,
unsigned char *sig ) const unsigned char *sig )
{ {
int ret; int ret;
size_t len, siglen, asn1_len; size_t len, siglen, asn1_len;
@ -1177,7 +1177,7 @@ int rsa_pkcs1_verify( rsa_context *ctx,
md_type_t md_alg, md_type_t md_alg,
unsigned int hashlen, unsigned int hashlen,
const unsigned char *hash, const unsigned char *hash,
unsigned char *sig ) const unsigned char *sig )
{ {
switch( ctx->padding ) switch( ctx->padding )
{ {