summaryrefslogtreecommitdiffstats
path: root/include/digest.h
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-05-25 12:48:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-26 09:27:35 +0200
commit099dcf6673f07807fbc4200abc4ef262c4f3dead (patch)
tree5bdd45ea2f8870cc18004c06e8cd1d3045b37be4 /include/digest.h
parente617c9b82126caa6a37c9eaf123ca106c714ee52 (diff)
downloadbarebox-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 'include/digest.h')
-rw-r--r--include/digest.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/digest.h b/include/digest.h
index 7f8d696eb6..7c6711b32a 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -68,14 +68,14 @@ void digest_free(struct digest *d);
int digest_file_window(struct digest *d, const char *filename,
unsigned char *hash,
- unsigned char *sig,
+ const unsigned char *sig,
ulong start, ulong size);
int digest_file(struct digest *d, const char *filename,
- unsigned char *hash,
- unsigned char *sig);
+ unsigned char *hash,
+ const unsigned char *sig);
int digest_file_by_name(const char *algo, const char *filename,
- unsigned char *hash,
- unsigned char *sig);
+ unsigned char *hash,
+ const unsigned char *sig);
static inline int digest_init(struct digest *d)
{