diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-25 04:31:52 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-25 04:31:52 +0200 |
commit | db7c441175942d3b3c3e6321a9a16dc7e83b747c (patch) | |
tree | 1e76d08e646d466dd0e096b23c048dde074fb78e /cryptodev_cipher.c | |
parent | 9de348f24de5ab4f6eafba7a20f3fa64912b917b (diff) | |
download | cryptodev-linux-db7c441175942d3b3c3e6321a9a16dc7e83b747c.tar.gz cryptodev-linux-db7c441175942d3b3c3e6321a9a16dc7e83b747c.tar.xz cryptodev-linux-db7c441175942d3b3c3e6321a9a16dc7e83b747c.zip |
Remove a redundant argument of cryptodev_hash_init
Diffstat (limited to 'cryptodev_cipher.c')
-rw-r--r-- | cryptodev_cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptodev_cipher.c b/cryptodev_cipher.c index 4e74fcc..dae4a63 100644 --- a/cryptodev_cipher.c +++ b/cryptodev_cipher.c @@ -216,7 +216,7 @@ ssize_t cryptodev_cipher_decrypt( struct cipher_data* cdata, const struct scatte /* Hash functions */ -int cryptodev_hash_init( struct hash_data* hdata, const char* alg_name, int hmac_mode, void * mackey, size_t mackeylen) +int cryptodev_hash_init(struct hash_data *hdata, const char *alg_name, const void *mackey, size_t mackeylen) { int ret; @@ -228,7 +228,7 @@ int ret; } /* Copy the key from user and set to TFM. */ - if (hmac_mode != 0) { + if (mackey != NULL) { ret = crypto_ahash_setkey(hdata->async.s, mackey, mackeylen); if (unlikely(ret)) { |