Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.4 /crypto/tcrypt.c

Filename:/crypto/tcrypt.c
Lines Added:10
Lines Deleted:1
Also changed in: (Previous) 2.6.4-rc3  2.6.4-rc2-bk5  2.6.4-rc2-bk4  2.6.4-rc2-bk3  2.6.4-rc2-bk2  2.6.4-rc2-bk1 
(Following) 2.6.5-rc1  2.6.5-rc2  2.6.5-rc2-bk3  2.6.5-rc2-bk4  2.6.5-rc2-bk5  2.6.5-rc2-bk6 

Location
[  2.6.4
  [  crypto
     o  tcrypt.c

Patch

diff -Nru a/crypto/tcrypt.c b/crypto/tcrypt.c
--- a/crypto/tcrypt.c   Wed Mar 10 18:56:11 2004
+++ b/crypto/tcrypt.c   Wed Mar 10 18:56:11 2004
@@ -61,7 +61,7 @@
 static char *check[] = {
    "des", "md5", "des3_ede", "rot13", "sha1", "sha256", "blowfish",
    "twofish", "serpent", "sha384", "sha512", "md4", "aes", "cast6", 
-   "deflate", NULL
+   "arc4", "deflate", NULL
 };
 
 static void
@@ -556,6 +556,10 @@
       test_cipher ("cast6", MODE_ECB, ENCRYPT, cast6_enc_tv_template, CAST6_ENC_TEST_VECTORS);
       test_cipher ("cast6", MODE_ECB, DECRYPT, cast6_dec_tv_template, CAST6_DEC_TEST_VECTORS);
 
+      //ARC4
+      test_cipher ("arc4", MODE_ECB, ENCRYPT, arc4_enc_tv_template, ARC4_ENC_TEST_VECTORS);
+      test_cipher ("arc4x", MODE_ECB, DECRYPT, arc4_dec_tv_template, ARC4_DEC_TEST_VECTORS);
+
       test_hash("sha384", sha384_tv_template, SHA384_TEST_VECTORS);
       test_hash("sha512", sha512_tv_template, SHA512_TEST_VECTORS);
       test_deflate();      
@@ -636,6 +640,11 @@
    case 15:
       test_cipher ("cast6", MODE_ECB, ENCRYPT, cast6_enc_tv_template, CAST6_ENC_TEST_VECTORS);
       test_cipher ("cast6", MODE_ECB, DECRYPT, cast6_dec_tv_template, CAST6_DEC_TEST_VECTORS);
+      break;
+
+   case 16:
+      test_cipher ("arc4", MODE_ECB, ENCRYPT, arc4_enc_tv_template, ARC4_ENC_TEST_VECTORS);
+      test_cipher ("arc4", MODE_ECB, DECRYPT, arc4_dec_tv_template, ARC4_DEC_TEST_VECTORS);
       break;
 
 #ifdef CONFIG_CRYPTO_HMAC


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.