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
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-
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
---
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