aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/aes128ecb_encrypt_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/aes128ecb_encrypt_file.cpp')
-rw-r--r--utils/aes128ecb_encrypt_file.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/aes128ecb_encrypt_file.cpp b/utils/aes128ecb_encrypt_file.cpp
index 2e24f04..34a7dae 100644
--- a/utils/aes128ecb_encrypt_file.cpp
+++ b/utils/aes128ecb_encrypt_file.cpp
@@ -34,13 +34,13 @@ namespace
int main(int argc, char** argv)
{
- AesBlock128 key;
- Aes128KeySchedule key_schedule;
+ AesNI_Block128 key;
+ AesNI_KeySchedule128 key_schedule;
if (argc != 4)
exit_with_usage();
- if (parse_aes_block128(&key, argv[1]) != 0)
+ if (aesni_parse_block128(&key, argv[1]) != 0)
{
std::cerr << "Invalid 128-bit AES block '" << argv[1] << "'\n";
exit_with_usage();
@@ -62,9 +62,9 @@ int main(int argc, char** argv)
src_buf.assign(std::istreambuf_iterator<char>(src_ifs),
std::istreambuf_iterator<char>());
- aes128_expand_key_schedule(key, &key_schedule);
+ aesni_expand_key_schedule128(key, &key_schedule);
- const auto dest_size = aes128ecb_encrypt_buffer(
+ const auto dest_size = aesni_encrypt_buffer_ecb128(
src_buf.data(),
static_cast<std::size_t>(src_size),
NULL,
@@ -72,7 +72,7 @@ int main(int argc, char** argv)
std::vector<unsigned char> dest_buf(static_cast<std::vector<char>::size_type>(dest_size));
- aes128ecb_encrypt_buffer(
+ aesni_encrypt_buffer_ecb128(
src_buf.data(),
static_cast<std::size_t>(src_size),
dest_buf.data(),