Re: [Cryptodev-linux-devel] [PATCH] remove code duplication in cryptodev_hash_init

2016-01-18 Thread Phil Sutter
On Tue, Jan 12, 2016 at 10:16:18AM +0200, Cristian Stoica wrote: > cryptodev_hash_init is concerned mostly with allocating data structures > for hash operations. > This patch replaces the call it makes to crypto_ahash_init with > one to cryptodev_hash_reset to avoid code duplication. This call is m

[Cryptodev-linux-devel] [PATCH] remove code duplication in cryptodev_hash_init

2016-01-12 Thread Cristian Stoica
cryptodev_hash_init is concerned mostly with allocating data structures for hash operations. This patch replaces the call it makes to crypto_ahash_init with one to cryptodev_hash_reset to avoid code duplication. This call is made now outside of the original function to increase modularity. Signed-