Commit eebb111f5f4aa7b91ffc046b84b24c1b75e391d1

Authored by Herbert Xu
1 parent 13dda80e48

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: Herbert Xu <herbert@gondor.apana.org.au>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -234,6 +234,7 @@
234 234 .export = md5_export,
235 235 .import = md5_import,
236 236 .descsize = sizeof(struct md5_state),
  237 + .statesize = sizeof(struct md5_state),
237 238 .base = {
238 239 .cra_name = "md5",
239 240 .cra_flags = CRYPTO_ALG_TYPE_SHASH,