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>
This commit is contained in:
parent
e617c9b821
commit
099dcf6673
|
@ -172,7 +172,7 @@ EXPORT_SYMBOL_GPL(digest_free);
|
||||||
|
|
||||||
int digest_file_window(struct digest *d, const char *filename,
|
int digest_file_window(struct digest *d, const char *filename,
|
||||||
unsigned char *hash,
|
unsigned char *hash,
|
||||||
unsigned char *sig,
|
const unsigned char *sig,
|
||||||
ulong start, ulong size)
|
ulong start, ulong size)
|
||||||
{
|
{
|
||||||
ulong len = 0;
|
ulong len = 0;
|
||||||
|
@ -249,8 +249,8 @@ out:
|
||||||
EXPORT_SYMBOL_GPL(digest_file_window);
|
EXPORT_SYMBOL_GPL(digest_file_window);
|
||||||
|
|
||||||
int digest_file(struct digest *d, const char *filename,
|
int digest_file(struct digest *d, const char *filename,
|
||||||
unsigned char *hash,
|
unsigned char *hash,
|
||||||
unsigned char *sig)
|
const unsigned char *sig)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -265,8 +265,8 @@ int digest_file(struct digest *d, const char *filename,
|
||||||
EXPORT_SYMBOL_GPL(digest_file);
|
EXPORT_SYMBOL_GPL(digest_file);
|
||||||
|
|
||||||
int digest_file_by_name(const char *algo, const char *filename,
|
int digest_file_by_name(const char *algo, const char *filename,
|
||||||
unsigned char *hash,
|
unsigned char *hash,
|
||||||
unsigned char *sig)
|
const unsigned char *sig)
|
||||||
{
|
{
|
||||||
struct digest *d;
|
struct digest *d;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -68,14 +68,14 @@ void digest_free(struct digest *d);
|
||||||
|
|
||||||
int digest_file_window(struct digest *d, const char *filename,
|
int digest_file_window(struct digest *d, const char *filename,
|
||||||
unsigned char *hash,
|
unsigned char *hash,
|
||||||
unsigned char *sig,
|
const unsigned char *sig,
|
||||||
ulong start, ulong size);
|
ulong start, ulong size);
|
||||||
int digest_file(struct digest *d, const char *filename,
|
int digest_file(struct digest *d, const char *filename,
|
||||||
unsigned char *hash,
|
unsigned char *hash,
|
||||||
unsigned char *sig);
|
const unsigned char *sig);
|
||||||
int digest_file_by_name(const char *algo, const char *filename,
|
int digest_file_by_name(const char *algo, const char *filename,
|
||||||
unsigned char *hash,
|
unsigned char *hash,
|
||||||
unsigned char *sig);
|
const unsigned char *sig);
|
||||||
|
|
||||||
static inline int digest_init(struct digest *d)
|
static inline int digest_init(struct digest *d)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue