Re: [PATCH] cit_encrypt_iv/cit_decrypt_iv for ECB mode

2006-08-21 Thread Solar Designer
On Mon, Aug 21, 2006 at 08:58:30AM +1000, Herbert Xu wrote: > On Sun, Aug 20, 2006 at 06:49:08PM +0400, Solar Designer wrote: > > > > Can we maybe define working but IV-ignoring functions for ECB (like I > > did), but use memory-clearing nocrypt*() for CFB and CTR (as long as > > these are not sup

[PATCH 7/7] [CRYPTO] digest: Remove old HMAC implementation

2006-08-21 Thread Herbert Xu
[CRYPTO] digest: Remove old HMAC implementation This patch removes the old HMAC implementation now that nobody uses it anymore. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- crypto/Kconfig |2 crypto/digest.c|3 - c

[PATCH 4/7] [IPSEC]: Use HMAC template and hash interface

2006-08-21 Thread Herbert Xu
[IPSEC]: Use HMAC template and hash interface This patch converts IPsec to use the new HMAC template. The names of existing simple digest algorithms may still be used to refer to their HMAC composites. The same structure can be used by other MACs such as AES-XCBC-MAC. This patch also switches f

[PATCH 5/7] [SCTP]: Use HMAC template and hash interface

2006-08-21 Thread Herbert Xu
[SCTP]: Use HMAC template and hash interface This patch converts SCTP to use the new HMAC template and hash interface. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- include/net/sctp/constants.h |4 ++-- include/net/sctp/sctp.h |

[PATCH 2/7] [CRYPTO] hmac: Add crypto template implementation

2006-08-21 Thread Herbert Xu
[CRYPTO] hmac: Add crypto template implementation This patch rewrites HMAC as a crypto template. This means that HMAC is no longer a hard-coded part of the API. It's now a template that generates standard digest algorithms like any other. The old HMAC is preserved until all current users are co

[PATCH 6/7] [CRYPTO] doc: Update documentation for hash and me

2006-08-21 Thread Herbert Xu
[CRYPTO] doc: Update documentation for hash and me This patch updates the documentation to reflect the switch from digest to hash. It also replaces notes about emailing James Morris to refer to me instead. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> --- Documentation/crypto/api-intro.txt |

[PATCH 3/7] [CRYPTO] tcrypt: Use HMAC template and hash interface

2006-08-21 Thread Herbert Xu
[CRYPTO] tcrypt: Use HMAC template and hash interface This patch converts tcrypt to use the new HMAC template rather than the hard-coded version of HMAC. It also converts all digest users to use the new cipher interface. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> Signed-off-by: David S. Mille

[0/7] [CRYPTO]: Add hash type and hmac template

2006-08-21 Thread Herbert Xu
Hi: Dave, these patches are for cryptodev-2.6. This series of patches adds the new hash crypto type. It completely replaces the existing digest type from the user's side. For now the digest algorithm interface will remain and coexist with the new hash algorithm interface. The main reasons for

[PATCH 1/7] [CRYPTO] digest: Added user API for new hash type

2006-08-21 Thread Herbert Xu
[CRYPTO] digest: Added user API for new hash type The existing digest user interface is inadequate for support asynchronous operations. For one it doesn't return a value to indicate success or failure, nor does it take a per-operation descriptor which is essential for the issuing of requests whil

Re: [2/2] [CRYPTO] api: Mark parts of cipher interface as deprecated

2006-08-21 Thread Herbert Xu
On Tue, Aug 15, 2006 at 09:52:48PM +1000, herbert wrote: > > [CRYPTO] api: Mark parts of cipher interface as deprecated > > Mark the parts of the cipher interface that have been replaced by > block ciphers as deprecated. Thanks to Andrew Morton for suggesting > doing this before removing them co

Re: Warning: cryptodev-2.6 to be rebased

2006-08-21 Thread Herbert Xu
On Tue, Aug 15, 2006 at 05:09:38PM +1000, herbert wrote: > > Sorry, I've had to rebase it again due to conflicts in the mm tree. There you go, I'm rebasing it again because the compatibility stuff for cipher turned out to be broken. I've also taken the opportunity to coalesce some bug fix change