[PATCH 3/12] crypto: Correct size given to memset

2009-12-09 Thread Julia Lawall
From: Julia Lawall Memset should be given the size of the structure, not the size of the pointer. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ type T; T *x; expression E; @@ memset(x, E, sizeof( + * x)) // Signed-off-by: Julia Lawall --- cr

[PATCH] xfrm: Fix truncation length of authentication algorithms installed via PF_KEY

2009-12-09 Thread Martin Willi
Commit 4447bb33f09444920a8f1d89e1540137429351b6 breaks installation of authentication algorithms via PF_KEY, as the state specific truncation length is not installed with the algorithms default truncation length. This patch initializes state properly to the default if installed via PF_KEY. Signed-

[PATCH] crypto/testmgr: fix uninitialized warning from gcc

2009-12-09 Thread Mike Frysinger
Since err is not set to a value if tcount is 0, gcc issues a warning: crypto/testmgr.c: In function ‘test_cprng’: crypto/testmgr.c:1204: warning: ‘err’ may be used uninitialized in this function Since this is test code, forcing initialized sanity should be fine. Signed-off-by: Mike Frysinger ---

Question About Asymmetric Crypto

2009-12-09 Thread Leo Yan
Hi, all Sorry for that I have to ask the question once more for asymmetric crypto. And another question is about FIPS. My problem is our SOC chip is the application processor, and provide the Crypto hardware engine with hash, symmetric crypto (aes, 3des, etc) and asymmetric crypto (PKCS-RSA, E