diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-03-02 08:58:16 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-03-02 08:58:16 -0500 |
commit | eebb111f5f4aa7b91ffc046b84b24c1b75e391d1 (patch) | |
tree | b92a785f4e78ff878615cd675db78691bb0df93e /crypto | |
parent | 13dda80e48439b446d0bc9bab34b91484bc8f533 (diff) |
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/md5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/md5.c b/crypto/md5.c index 9fda213a592e..30efc7dad891 100644 --- a/crypto/md5.c +++ b/crypto/md5.c | |||
@@ -234,6 +234,7 @@ static struct shash_alg alg = { | |||
234 | .export = md5_export, | 234 | .export = md5_export, |
235 | .import = md5_import, | 235 | .import = md5_import, |
236 | .descsize = sizeof(struct md5_state), | 236 | .descsize = sizeof(struct md5_state), |
237 | .statesize = sizeof(struct md5_state), | ||
237 | .base = { | 238 | .base = { |
238 | .cra_name = "md5", | 239 | .cra_name = "md5", |
239 | .cra_flags = CRYPTO_ALG_TYPE_SHASH, | 240 | .cra_flags = CRYPTO_ALG_TYPE_SHASH, |