Messages in this thread | | | Date | Tue, 2 Mar 2010 19:34:08 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto, Speed testing support for ghash |
| |
On Mon, Mar 01, 2010 at 04:06:44PM +0800, Huang Ying wrote: > Because ghash needs setkey, the setkey and keysize template support > for test_hash_speed is added. > > Signed-off-by: Huang Ying <ying.huang@intel.com> > --- > crypto/tcrypt.c | 122 +++++++++++++++++++++++++++++++++++--------------------- > crypto/tcrypt.h | 1 > 2 files changed, 78 insertions(+), 45 deletions(-) > > --- a/crypto/tcrypt.c > +++ b/crypto/tcrypt.c > @@ -395,12 +395,13 @@ out: > } > > static void test_hash_speed(const char *algo, unsigned int sec, > - struct hash_speed *speed) > + struct hash_speed *speed, u8 *keysize)
Can we possibly move keysize into struct hash_speed to reduce the churn?
Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |