From: Niels Möller Date: Tue, 4 Apr 2017 19:34:08 +0000 (+0200) Subject: Use const for input mpz_t argument to pss_verify_mgf1. X-Git-Tag: nettle_3.4rc1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a31b480e87c7ae9542fe892d4df76ad1050b7bd;p=thirdparty%2Fnettle.git Use const for input mpz_t argument to pss_verify_mgf1. --- diff --git a/ChangeLog b/ChangeLog index 550e6286..1e764146 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2017-04-04 Niels Möller + * pss.c (pss_verify_mgf1): Use const for input mpz_t argument. + Merged RSA-PSS support, contributed by Daiki Ueno. * pss-mgf1.h, pss.h: New header files. * pss-mgf1.c (pss_mgf1): New file and function. diff --git a/pss.c b/pss.c index c50f8c89..b1442671 100644 --- a/pss.c +++ b/pss.c @@ -120,7 +120,7 @@ pss_encode_mgf1(mpz_t m, size_t bits, * Returns 1 if the encoded message is consistent, 0 if it is * inconsistent. */ int -pss_verify_mgf1(mpz_t m, size_t bits, +pss_verify_mgf1(const mpz_t m, size_t bits, const struct nettle_hash *hash, size_t salt_length, const uint8_t *digest) diff --git a/pss.h b/pss.h index 9733acb1..7627cfe9 100644 --- a/pss.h +++ b/pss.h @@ -53,7 +53,7 @@ pss_encode_mgf1(mpz_t m, size_t bits, const uint8_t *digest); int -pss_verify_mgf1(mpz_t m, size_t bits, +pss_verify_mgf1(const mpz_t m, size_t bits, const struct nettle_hash *hash, size_t salt_length, const uint8_t *digest);