Skip to content
Snippets Groups Projects
Commit eebb111f authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: md5 - Set statesize


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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 13dda80e
No related branches found
No related tags found
No related merge requests found
...@@ -234,6 +234,7 @@ static struct shash_alg alg = { ...@@ -234,6 +234,7 @@ static struct shash_alg alg = {
.export = md5_export, .export = md5_export,
.import = md5_import, .import = md5_import,
.descsize = sizeof(struct md5_state), .descsize = sizeof(struct md5_state),
.statesize = sizeof(struct md5_state),
.base = { .base = {
.cra_name = "md5", .cra_name = "md5",
.cra_flags = CRYPTO_ALG_TYPE_SHASH, .cra_flags = CRYPTO_ALG_TYPE_SHASH,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment