aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/des/des.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/des/des.cpp')
-rw-r--r--src/lib/block/des/des.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/block/des/des.cpp b/src/lib/block/des/des.cpp
index 2994b7cb2..c1013b9af 100644
--- a/src/lib/block/des/des.cpp
+++ b/src/lib/block/des/des.cpp
@@ -157,7 +157,7 @@ void DES::encrypt_n(const byte in[], byte out[], size_t blocks) const
u32bit L = static_cast<u32bit>(T >> 32);
u32bit R = static_cast<u32bit>(T);
- des_encrypt(L, R, &round_key[0]);
+ des_encrypt(L, R, round_key.data());
T = (DES_FPTAB1[get_byte(0, L)] << 5) | (DES_FPTAB1[get_byte(1, L)] << 3) |
(DES_FPTAB1[get_byte(2, L)] << 1) | (DES_FPTAB2[get_byte(3, L)] << 1) |
@@ -187,7 +187,7 @@ void DES::decrypt_n(const byte in[], byte out[], size_t blocks) const
u32bit L = static_cast<u32bit>(T >> 32);
u32bit R = static_cast<u32bit>(T);
- des_decrypt(L, R, &round_key[0]);
+ des_decrypt(L, R, round_key.data());
T = (DES_FPTAB1[get_byte(0, L)] << 5) | (DES_FPTAB1[get_byte(1, L)] << 3) |
(DES_FPTAB1[get_byte(2, L)] << 1) | (DES_FPTAB2[get_byte(3, L)] << 1) |
@@ -209,7 +209,7 @@ void DES::decrypt_n(const byte in[], byte out[], size_t blocks) const
void DES::key_schedule(const byte key[], size_t)
{
round_key.resize(32);
- des_key_schedule(&round_key[0], key);
+ des_key_schedule(round_key.data(), key);
}
void DES::clear()