Linux/MacOSX: Solve compilation error linked to Camellia cipher addition.

This commit is contained in:
Mounir IDRASSI 2016-06-19 00:36:46 +02:00
parent 85cab3b85f
commit 45617a3285
No known key found for this signature in database
GPG key ID: DD0C382D5FCFB8FC
3 changed files with 5 additions and 4 deletions

View file

@ -6,7 +6,7 @@ and released into public domain.
/* Adapted for VeraCrypt */
#include "camellia.h"
#include "Camellia.h"
#include "Common/Endian.h"
#include "Crypto/misc.h"

View file

@ -245,12 +245,12 @@ namespace VeraCrypt
// Camellia
void CipherCamellia::Decrypt (byte *data) const
{
camellia_decrypt (data, data, (uint64 *) ScheduledKey.Ptr());
camellia_decrypt (data, data, ScheduledKey.Ptr());
}
void CipherCamellia::Encrypt (byte *data) const
{
camellia_encrypt (data, data, (uint64 *) ScheduledKey.Ptr());
camellia_encrypt (data, data, ScheduledKey.Ptr());
}
size_t CipherCamellia::GetScheduledKeySize () const
@ -260,7 +260,7 @@ namespace VeraCrypt
void CipherCamellia::SetCipherKey (const byte *key)
{
camellia_set_key (key, (uint64 *) ScheduledKey.Ptr());
camellia_set_key (key, ScheduledKey.Ptr());
}

View file

@ -51,6 +51,7 @@ OBJS += ../Crypto/Serpent.o
OBJS += ../Crypto/Sha2.o
OBJS += ../Crypto/Twofish.o
OBJS += ../Crypto/Whirlpool.o
OBJS += ../Crypto/Camellia.o
OBJS += ../Common/Crc.o
OBJS += ../Common/Endian.o