Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=94765b9e4cba8e3c51c292338db16aa174894d30
Commit:     94765b9e4cba8e3c51c292338db16aa174894d30
Parent:     1b87887d6c232becba77835b29a424cf78442b7d
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 1 15:49:17 2008 +1100
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Fri Jan 11 08:17:00 2008 +1100

    [CRYPTO] xcbc: Remove bogus hash/cipher test
    
    When setting the digest size xcbc tests to see if the underlying algorithm
    is a hash.  This is silly because we don't allow it to be a hash and we've
    specifically requested for a cipher.
    
    This patch removes the bogus test.
    
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 crypto/xcbc.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/crypto/xcbc.c b/crypto/xcbc.c
index e3d9503..a82959d 100644
--- a/crypto/xcbc.c
+++ b/crypto/xcbc.c
@@ -321,10 +321,7 @@ static struct crypto_instance *xcbc_alloc(struct rtattr 
**tb)
        inst->alg.cra_alignmask = alg->cra_alignmask;
        inst->alg.cra_type = &crypto_hash_type;
 
-       inst->alg.cra_hash.digestsize =
-               (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) ==
-               CRYPTO_ALG_TYPE_HASH ? alg->cra_hash.digestsize :
-                                      alg->cra_blocksize;
+       inst->alg.cra_hash.digestsize = alg->cra_blocksize;
        inst->alg.cra_ctxsize = sizeof(struct crypto_xcbc_ctx) +
                                ALIGN(inst->alg.cra_blocksize * 3, sizeof(void 
*));
        inst->alg.cra_init = xcbc_init_tfm;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to