mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 20:13:33 +01:00
Linux/MacOSX: Solve compilation error linked to Camellia cipher addition.
This commit is contained in:
parent
85cab3b85f
commit
45617a3285
@ -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"
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user