mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Add 128-bit variant of Camellia.
This commit is contained in:
parent
a92fa61c48
commit
bc15e25d7a
5 changed files with 59 additions and 14 deletions
|
@ -178,7 +178,18 @@ setup_cipher_table(void)
|
|||
i++;
|
||||
|
||||
#ifdef USE_CAMELLIA
|
||||
cipher_table[i].algo = CIPHER_ALGO_CAMELLIA;
|
||||
cipher_table[i].algo = CIPHER_ALGO_CAMELLIA128;
|
||||
cipher_table[i].name = camellia_get_info( cipher_table[i].algo,
|
||||
&cipher_table[i].keylen,
|
||||
&cipher_table[i].blocksize,
|
||||
&cipher_table[i].contextsize,
|
||||
&cipher_table[i].setkey,
|
||||
&cipher_table[i].encrypt,
|
||||
&cipher_table[i].decrypt );
|
||||
if( !cipher_table[i].name )
|
||||
BUG();
|
||||
i++;
|
||||
cipher_table[i].algo = CIPHER_ALGO_CAMELLIA256;
|
||||
cipher_table[i].name = camellia_get_info( cipher_table[i].algo,
|
||||
&cipher_table[i].keylen,
|
||||
&cipher_table[i].blocksize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue