Constify RSA signature buffer.

This commit is contained in:
Dr. Stephen Henson 2011-06-03 12:38:18 +00:00
parent 946f57105f
commit 267229b141
2 changed files with 4 additions and 4 deletions

View file

@ -190,13 +190,13 @@ int FIPS_rsa_sign_digest(struct rsa_st *rsa,
int FIPS_rsa_verify_ctx(struct rsa_st *rsa, struct env_md_ctx_st *ctx, int FIPS_rsa_verify_ctx(struct rsa_st *rsa, struct env_md_ctx_st *ctx,
int rsa_pad_mode, int saltlen, int rsa_pad_mode, int saltlen,
const struct env_md_st *mgf1Hash, const struct env_md_st *mgf1Hash,
unsigned char *sigbuf, unsigned int siglen); const unsigned char *sigbuf, unsigned int siglen);
int FIPS_rsa_verify_digest(struct rsa_st *rsa, int FIPS_rsa_verify_digest(struct rsa_st *rsa,
const unsigned char *dig, int diglen, const unsigned char *dig, int diglen,
const struct env_md_st *mhash, const struct env_md_st *mhash,
int rsa_pad_mode, int saltlen, int rsa_pad_mode, int saltlen,
const struct env_md_st *mgf1Hash, const struct env_md_st *mgf1Hash,
unsigned char *sigbuf, unsigned int siglen); const unsigned char *sigbuf, unsigned int siglen);
#ifndef OPENSSL_FIPSCANISTER #ifndef OPENSSL_FIPSCANISTER

View file

@ -304,7 +304,7 @@ int FIPS_rsa_sign_digest(RSA *rsa, const unsigned char *md, int md_len,
int FIPS_rsa_verify_ctx(RSA *rsa, EVP_MD_CTX *ctx, int FIPS_rsa_verify_ctx(RSA *rsa, EVP_MD_CTX *ctx,
int rsa_pad_mode, int saltlen, const EVP_MD *mgf1Hash, int rsa_pad_mode, int saltlen, const EVP_MD *mgf1Hash,
unsigned char *sigbuf, unsigned int siglen) const unsigned char *sigbuf, unsigned int siglen)
{ {
unsigned int md_len, rv; unsigned int md_len, rv;
unsigned char md[EVP_MAX_MD_SIZE]; unsigned char md[EVP_MAX_MD_SIZE];
@ -319,7 +319,7 @@ int FIPS_rsa_verify_ctx(RSA *rsa, EVP_MD_CTX *ctx,
int FIPS_rsa_verify_digest(RSA *rsa, const unsigned char *dig, int diglen, int FIPS_rsa_verify_digest(RSA *rsa, const unsigned char *dig, int diglen,
const EVP_MD *mhash, int rsa_pad_mode, int saltlen, const EVP_MD *mhash, int rsa_pad_mode, int saltlen,
const EVP_MD *mgf1Hash, const EVP_MD *mgf1Hash,
unsigned char *sigbuf, unsigned int siglen) const unsigned char *sigbuf, unsigned int siglen)
{ {
int i,ret=0; int i,ret=0;
unsigned int dlen; unsigned int dlen;