From 738177ec0eae05069ec61bc4f724a69d4e052e42 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 26 Sep 2013 23:20:32 +0200 Subject: cipher: Add support for 128-bit keys in RC2 * cipher/rfc2268.c (oids_rfc2268_128): New (_gcry_cipher_spec_rfc2268_128): New. * cipher/cipher.c (cipher_table_entry): Add GCRY_CIPHER_RFC2268_128. -- This patch adds support for decrypting (and encrypting) using 128-bit keys using the RC2 algorithm. Signed-off-by: Peter Wu Actually this is merely enabling that extra ID for 128 bit RFC2268. We should have used one id for that algorithm only, because a second identifier merely for having the OID in the code is a bad idea. My initial fault and thus I better apply this patch to make the id not entirely useless. -wk --- src/cipher.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cipher.h') diff --git a/src/cipher.h b/src/cipher.h index ea7a141a..70b46fe2 100644 --- a/src/cipher.h +++ b/src/cipher.h @@ -194,6 +194,7 @@ extern gcry_cipher_spec_t _gcry_cipher_spec_serpent128; extern gcry_cipher_spec_t _gcry_cipher_spec_serpent192; extern gcry_cipher_spec_t _gcry_cipher_spec_serpent256; extern gcry_cipher_spec_t _gcry_cipher_spec_rfc2268_40; +extern gcry_cipher_spec_t _gcry_cipher_spec_rfc2268_128; extern gcry_cipher_spec_t _gcry_cipher_spec_seed; extern gcry_cipher_spec_t _gcry_cipher_spec_camellia128; extern gcry_cipher_spec_t _gcry_cipher_spec_camellia192; -- cgit v1.2.1