diff options
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r-- | cipher/cipher.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c index c8ebb7574..a6489d9f5 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -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, |