diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-05-25 12:48:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-05-26 09:27:35 +0200 |
commit | 099dcf6673f07807fbc4200abc4ef262c4f3dead (patch) | |
tree | 5bdd45ea2f8870cc18004c06e8cd1d3045b37be4 /crypto | |
parent | e617c9b82126caa6a37c9eaf123ca106c714ee52 (diff) | |
download | barebox-099dcf6673f07807fbc4200abc4ef262c4f3dead.tar.gz barebox-099dcf6673f07807fbc4200abc4ef262c4f3dead.tar.xz |
crypto: digest: mark signature argument as const
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/digest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/digest.c b/crypto/digest.c index b3f514c8ad..a90e4ff79f 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -172,7 +172,7 @@ EXPORT_SYMBOL_GPL(digest_free); int digest_file_window(struct digest *d, const char *filename, unsigned char *hash, - unsigned char *sig, + const unsigned char *sig, ulong start, ulong size) { ulong len = 0; @@ -249,8 +249,8 @@ out: EXPORT_SYMBOL_GPL(digest_file_window); int digest_file(struct digest *d, const char *filename, - unsigned char *hash, - unsigned char *sig) + unsigned char *hash, + const unsigned char *sig) { struct stat st; int ret; @@ -265,8 +265,8 @@ int digest_file(struct digest *d, const char *filename, EXPORT_SYMBOL_GPL(digest_file); int digest_file_by_name(const char *algo, const char *filename, - unsigned char *hash, - unsigned char *sig) + unsigned char *hash, + const unsigned char *sig) { struct digest *d; int ret; |