aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2007-08-21 08:01:03 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:55:38 -0400
commite2ee95b8c69e542d6afef3f6f38ea598cc146ba7 (patch)
tree9fea66f721fd0ca6b8b519a927a1c65fcbcb56ef /crypto/tcrypt.c
parentaa379a6ab17ff5b06552c52360ce6d9f8c7c209a (diff)
[CRYPTO] seed: New cipher algorithm
This patch adds support for the SEED cipher (RFC4269). This patch have been used in few VPN appliance vendors in Korea for several years. And it was verified by KISA, who developed the algorithm itself. As its importance in Korean banking industry, it would be great if linux incorporates the support. Signed-off-by: Hye-Shik Chang <perky@FreeBSD.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 11f935953816..de6435ea9bf8 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -78,7 +78,7 @@ static char *check[] = {
78 "twofish", "serpent", "sha384", "sha512", "md4", "aes", "cast6", 78 "twofish", "serpent", "sha384", "sha512", "md4", "aes", "cast6",
79 "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea", 79 "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea",
80 "khazad", "wp512", "wp384", "wp256", "tnepres", "xeta", "fcrypt", 80 "khazad", "wp512", "wp384", "wp256", "tnepres", "xeta", "fcrypt",
81 "camellia", NULL 81 "camellia", "seed", NULL
82}; 82};
83 83
84static void hexdump(unsigned char *buf, unsigned int len) 84static void hexdump(unsigned char *buf, unsigned int len)
@@ -1029,6 +1029,12 @@ static void do_test(void)
1029 camellia_cbc_dec_tv_template, 1029 camellia_cbc_dec_tv_template,
1030 CAMELLIA_CBC_DEC_TEST_VECTORS); 1030 CAMELLIA_CBC_DEC_TEST_VECTORS);
1031 1031
1032 //SEED
1033 test_cipher("ecb(seed)", ENCRYPT, seed_enc_tv_template,
1034 SEED_ENC_TEST_VECTORS);
1035 test_cipher("ecb(seed)", DECRYPT, seed_dec_tv_template,
1036 SEED_DEC_TEST_VECTORS);
1037
1032 test_hash("sha384", sha384_tv_template, SHA384_TEST_VECTORS); 1038 test_hash("sha384", sha384_tv_template, SHA384_TEST_VECTORS);
1033 test_hash("sha512", sha512_tv_template, SHA512_TEST_VECTORS); 1039 test_hash("sha512", sha512_tv_template, SHA512_TEST_VECTORS);
1034 test_hash("wp512", wp512_tv_template, WP512_TEST_VECTORS); 1040 test_hash("wp512", wp512_tv_template, WP512_TEST_VECTORS);