projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13dda80
)
crypto: md5 - Set statesize
author
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 2 Mar 2010 13:58:16 +0000
(21:58 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 2 Mar 2010 13:58:16 +0000
(21:58 +0800)
As md5 now has export/import functions, it must set the attribute
statesize. Otherwise anything that relies on import/export may
fail as they will see a zero statesize.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/md5.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/md5.c
b/crypto/md5.c
index 9fda213a592ef6ccb7e709769f56b1b5f761d447..30efc7dad89173e86fcf65b6ac7c20d858abfeb2 100644
(file)
--- a/
crypto/md5.c
+++ b/
crypto/md5.c
@@
-234,6
+234,7
@@
static struct shash_alg alg = {
.export = md5_export,
.import = md5_import,
.descsize = sizeof(struct md5_state),
+ .statesize = sizeof(struct md5_state),
.base = {
.cra_name = "md5",
.cra_flags = CRYPTO_ALG_TYPE_SHASH,