Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
9a31b480
Commit
9a31b480
authored
Apr 04, 2017
by
Niels Möller
Browse files
Use const for input mpz_t argument to pss_verify_mgf1.
parent
0024b7df
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
9a31b480
2017-04-04 Niels Möller <nisse@lysator.liu.se>
* 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.
...
...
pss.c
View file @
9a31b480
...
...
@@ -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
)
...
...
pss.h
View file @
9a31b480
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment