summaryrefslogtreecommitdiffstats
path: root/libtomcrypt/hashes/hash_memory.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 03:15:46 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 04:25:24 +0200
commit6c29ce243f2d106648d93bc3cf44060db38fdf9a (patch)
tree6788479b86f24bbc119c1c38c9cb42b9a97a56d2 /libtomcrypt/hashes/hash_memory.c
parent94ad20f2978e7234579593ac284f9c6cd1426785 (diff)
downloadcryptodev-linux-6c29ce243f2d106648d93bc3cf44060db38fdf9a.tar.gz
cryptodev-linux-6c29ce243f2d106648d93bc3cf44060db38fdf9a.tar.xz
cryptodev-linux-6c29ce243f2d106648d93bc3cf44060db38fdf9a.zip
Replace _ncr_algo_to_str by direct accesses
Diffstat (limited to 'libtomcrypt/hashes/hash_memory.c')
-rw-r--r--libtomcrypt/hashes/hash_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtomcrypt/hashes/hash_memory.c b/libtomcrypt/hashes/hash_memory.c
index a452525..5ba3bc6 100644
--- a/libtomcrypt/hashes/hash_memory.c
+++ b/libtomcrypt/hashes/hash_memory.c
@@ -44,7 +44,7 @@ int hash_memory(const struct algo_properties_st *hash, const unsigned char *in,
return CRYPT_BUFFER_OVERFLOW;
}
- err = cryptodev_hash_init( &hdata, _ncr_algo_to_str(hash->algo), 0, NULL, 0);
+ err = cryptodev_hash_init( &hdata, hash->kstr, 0, NULL, 0);
if (err < 0) {
err = CRYPT_INVALID_HASH;
goto LBL_ERR;