Add full Camellia support.
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 5 Jun 2009 14:11:03 +0000 (14:11 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Fri, 5 Jun 2009 14:11:03 +0000 (14:11 +0000)
commit047d97e95e1df831d699fb77cd58c269a13a5c5c
tree1aba8b3a366cbf6bfe543401009358b079ef3673
parent6f287d4e3fdaf4e7ebf1940e157a91d08d0f59fa
Add full Camellia support.

* configure.ac: Remove Camellia restriction.

* gpg.c (main), misc.c (openpgp_cipher_test_algo): Remove Camellia
restriction.

* misc.c (map_cipher_openpgp_to_gcry), main.h: Add macros for
openpgp_cipher_open, openpgp_cipher_get_algo_keylen, and
openpgp_cipher_get_algo_blklen to wrap around the corresponding gcry_*
functions, but pass the algorithm number through
map_cipher_openpgp_to_gcry.  This is needed in case the gcry algorithm
number doesn't match the OpenPGP number (c.f. Camellia).

* encr-data.c, pubkey-enc.c, mainproc.c, cipher.c, encode.c, seskey.c,
passphrase.c, seckey-cert.c: Use new openpgp_cipher_* macros here.
14 files changed:
ChangeLog
configure.ac
g10/ChangeLog
g10/cipher.c
g10/encode.c
g10/encr-data.c
g10/gpg.c
g10/main.h
g10/mainproc.c
g10/misc.c
g10/passphrase.c
g10/pubkey-enc.c
g10/seckey-cert.c
g10/seskey.c