linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Switch remaining algorithms to shash
@ 2008-12-04  0:18 Adrian-Ken Rueegsegger
  2008-12-04  0:18 ` [PATCH 1/4] crypto: sha512 - Remove W (message schedule) from struct sha512_ctx Adrian-Ken Rueegsegger
  2008-12-04  6:48 ` [PATCH 0/4] Switch remaining algorithms " Herbert Xu
  0 siblings, 2 replies; 10+ messages in thread
From: Adrian-Ken Rueegsegger @ 2008-12-04  0:18 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, steffen.klassert

This series converts the remaining hash algorithms to use the new shash
interface.

The first patch removes the message schedule W from struct sha512_ctx
since it gets calculated anew on each execution of sha512_transform. This
reduces the size of sha512_ctx considerably and will allow it to be
registered as a shash algorithm (it will pass the size check in
crypto_register_shash (crypto/shash.c:490)).
Herbert, could you explain why descsize must be smaller (or equal)
than PAGE_SIZE / 8?

The next two patches switch sha512 and wp512 to the new shash interface.

The fourth patch is another try to convert michael_mic. The key values
l and r are duplicated in the descriptor part since they are used and
changed during the actual transformation. I would be gratefull for
comments on this patch since I am not sure it's the proper way to do it.

Adrian

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

end of thread, other threads:[~2008-12-04  8:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04  0:18 [PATCH 0/4] Switch remaining algorithms to shash Adrian-Ken Rueegsegger
2008-12-04  0:18 ` [PATCH 1/4] crypto: sha512 - Remove W (message schedule) from struct sha512_ctx Adrian-Ken Rueegsegger
2008-12-04  0:18   ` [PATCH 2/4] crypto: sha512 - Switch to shash Adrian-Ken Rueegsegger
2008-12-04  0:18     ` [PATCH 3/4] crypto: wp512 " Adrian-Ken Rueegsegger
2008-12-04  0:18       ` [PATCH 4/4][RFC] crypto: michael_mic " Adrian-Ken Rueegsegger
2008-12-04  3:29         ` Herbert Xu
2008-12-04  8:04           ` Adrian-Ken Rueegsegger
2008-12-04  6:48 ` [PATCH 0/4] Switch remaining algorithms " Herbert Xu
2008-12-04  7:55   ` Adrian-Ken Rueegsegger
2008-12-04  8:02     ` 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).