linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] crypto: md5: add MD5 initial vectors
@ 2015-05-17 10:54 LABBE Corentin
  2015-05-17 10:54 ` [PATCH 2/6] crypto: md5: use md5 IV MD5_HX instead of their raw value LABBE Corentin
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: LABBE Corentin @ 2015-05-17 10:54 UTC (permalink / raw)
  To: herbert, davem, ralf, benh, paulus, mpe, aaro.koskinen
  Cc: linux-mips, linux-kernel, LABBE Corentin, linux-crypto,
	sparclinux, linuxppc-dev

This patch simply adds the MD5 IV in the md5 header.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
---
 include/crypto/md5.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/crypto/md5.h b/include/crypto/md5.h
index 65f299b..146af82 100644
--- a/include/crypto/md5.h
+++ b/include/crypto/md5.h
@@ -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];
-- 
2.3.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-18  4:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-17 10:54 [PATCH 1/6] crypto: md5: add MD5 initial vectors LABBE Corentin
2015-05-17 10:54 ` [PATCH 2/6] crypto: md5: use md5 IV MD5_HX instead of their raw value LABBE Corentin
2015-05-17 10:54 ` [PATCH 3/6] crypto: powerpc/md5: " LABBE Corentin
2015-05-17 10:54 ` [PATCH 4/6] crypto: sparc/md5: " LABBE Corentin
2015-05-17 10:54 ` [PATCH 5/6] crypto: n2: " LABBE Corentin
2015-05-17 10:54 ` [PATCH 6/6] crypto: octeon: " LABBE Corentin
2015-05-18  4:25 ` [PATCH 1/6] crypto: md5: add MD5 initial vectors Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).