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 /ncr-sessions.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 'ncr-sessions.c')
-rw-r--r-- | ncr-sessions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ncr-sessions.c b/ncr-sessions.c index 2521f2e..a08f237 100644 --- a/ncr-sessions.c +++ b/ncr-sessions.c @@ -444,7 +444,7 @@ static struct session_item_st *_ncr_session_init(struct ncr_lists *lists, goto fail; } - ret = cryptodev_hash_init(&ns->hash, ns->algorithm->kstr, 0, NULL, 0); + ret = cryptodev_hash_init(&ns->hash, ns->algorithm->kstr, NULL, 0); if (ret < 0) { err(); goto fail; @@ -474,7 +474,7 @@ static struct session_item_st *_ncr_session_init(struct ncr_lists *lists, goto fail; } - ret = cryptodev_hash_init(&ns->hash, ns->algorithm->kstr, 1, + ret = cryptodev_hash_init(&ns->hash, ns->algorithm->kstr, ns->key->key.secret.data, ns->key->key.secret.size); if (ret < 0) { err(); @@ -509,7 +509,7 @@ static struct session_item_st *_ncr_session_init(struct ncr_lists *lists, goto fail; } - ret = cryptodev_hash_init(&ns->hash, sign_hash->kstr, 0, NULL, 0); + ret = cryptodev_hash_init(&ns->hash, sign_hash->kstr, NULL, 0); if (ret < 0) { err(); goto fail; |