aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/aes/aes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/aes/aes.cpp')
-rw-r--r--src/lib/block/aes/aes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/block/aes/aes.cpp b/src/lib/block/aes/aes.cpp
index ff8c97b76..b9e00fe6c 100644
--- a/src/lib/block/aes/aes.cpp
+++ b/src/lib/block/aes/aes.cpp
@@ -677,8 +677,8 @@ void aes_key_schedule(const byte key[], size_t length,
EK.resize(length + 24);
DK.resize(length + 24);
- copy_mem(&EK[0], &XEK[0], EK.size());
- copy_mem(&DK[0], &XDK[0], DK.size());
+ copy_mem(EK.data(), XEK.data(), EK.size());
+ copy_mem(DK.data(), XDK.data(), DK.size());
}
}