diff options
| author | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 03:15:46 +0200 |
|---|---|---|
| committer | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 04:25:24 +0200 |
| commit | 6c29ce243f2d106648d93bc3cf44060db38fdf9a (patch) | |
| tree | 6788479b86f24bbc119c1c38c9cb42b9a97a56d2 /libtomcrypt | |
| parent | 94ad20f2978e7234579593ac284f9c6cd1426785 (diff) | |
| download | cryptodev-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')
| -rw-r--r-- | libtomcrypt/hashes/hash_memory.c | 2 | ||||
| -rw-r--r-- | libtomcrypt/hashes/hash_memory_multi.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/libtomcrypt/hashes/hash_memory_multi.c b/libtomcrypt/hashes/hash_memory_multi.c index a10e14c..d772492 100644 --- a/libtomcrypt/hashes/hash_memory_multi.c +++ b/libtomcrypt/hashes/hash_memory_multi.c @@ -50,7 +50,7 @@ int hash_memory_multi(const struct algo_properties_st *hash, unsigned char *out, 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; |
