aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/camellia/camellia.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-18 20:32:36 +0000
committerlloyd <[email protected]>2012-05-18 20:32:36 +0000
commitc691561f3198f481c13457433efbccc1c9fcd898 (patch)
treea45ea2c5a30e0cb009fbcb68a61ef39332ff790c /src/block/camellia/camellia.cpp
parentd76700f01c7ecac5633edf75f8d7408b46c5dbac (diff)
Fairly huge update that replaces the old secmem types with std::vector
using a custom allocator. Currently our allocator just does new/delete with a memset before deletion, and the mmap and mlock allocators have been removed.
Diffstat (limited to 'src/block/camellia/camellia.cpp')
-rw-r--r--src/block/camellia/camellia.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/block/camellia/camellia.cpp b/src/block/camellia/camellia.cpp
index 7b85b1aca..bea5d4c51 100644
--- a/src/block/camellia/camellia.cpp
+++ b/src/block/camellia/camellia.cpp
@@ -116,7 +116,7 @@ inline u64bit FLINV(u64bit v, u64bit K)
* Camellia Encryption
*/
void encrypt(const byte in[], byte out[], size_t blocks,
- const SecureVector<u64bit>& SK, const size_t rounds)
+ const secure_vector<u64bit>& SK, const size_t rounds)
{
for(size_t i = 0; i != blocks; ++i)
{
@@ -160,7 +160,7 @@ void encrypt(const byte in[], byte out[], size_t blocks,
* Camellia Decryption
*/
void decrypt(const byte in[], byte out[], size_t blocks,
- const SecureVector<u64bit>& SK, const size_t rounds)
+ const secure_vector<u64bit>& SK, const size_t rounds)
{
for(size_t i = 0; i != blocks; ++i)
{
@@ -213,7 +213,7 @@ u64bit left_rot_lo(u64bit h, u64bit l, size_t shift)
/*
* Camellia Key Schedule
*/
-void key_schedule(SecureVector<u64bit>& SK, const byte key[], size_t length)
+void key_schedule(secure_vector<u64bit>& SK, const byte key[], size_t length)
{
const u64bit Sigma1 = 0xA09E667F3BCC908B;
const u64bit Sigma2 = 0xB67AE8584CAA73B2;