Skip to content

Commit

Permalink
crypto: md5 - Set statesize
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
herbertx committed Mar 2, 2010
1 parent 13dda80 commit eebb111
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/md5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eebb111

Please sign in to comment.