Skip to content

Commit

Permalink
crypto: md5 - add MD5 initial vectors
Browse files Browse the repository at this point in the history
This patch simply adds the MD5 IV in the md5 header.

Signed-off-by: LABBE Corentin <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
montjoie authored and herbertx committed May 18, 2015
1 parent 9358eac commit f79f1f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/crypto/md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#define MD5_BLOCK_WORDS 16
#define MD5_HASH_WORDS 4

#define MD5_H0 0x67452301UL
#define MD5_H1 0xefcdab89UL
#define MD5_H2 0x98badcfeUL
#define MD5_H3 0x10325476UL

struct md5_state {
u32 hash[MD5_HASH_WORDS];
u32 block[MD5_BLOCK_WORDS];
Expand Down

0 comments on commit f79f1f7

Please sign in to comment.