aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/cxx
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-15 22:26:26 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-15 22:26:26 +0300
commite4973c13558b12397124d7c9423c5eb641140444 (patch)
tree55d53124f60bd6c8efb8c36661ba65f76d7c6eed /utils/cxx
parenthandle block parsing errors the standard way (diff)
downloadaes-tools-e4973c13558b12397124d7c9423c5eb641140444.tar.gz
aes-tools-e4973c13558b12397124d7c9423c5eb641140444.zip
utils/cxx/ -> cxx/
Diffstat (limited to 'utils/cxx')
-rw-r--r--utils/cxx/CMakeLists.txt3
-rw-r--r--utils/cxx/include/aesnixx/all.hpp11
-rw-r--r--utils/cxx/include/aesnixx/error.hpp47
3 files changed, 0 insertions, 61 deletions
diff --git a/utils/cxx/CMakeLists.txt b/utils/cxx/CMakeLists.txt
deleted file mode 100644
index 14b7700..0000000
--- a/utils/cxx/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-add_library(libaesnixx INTERFACE)
-target_include_directories(libaesnixx INTERFACE include/)
-target_link_libraries(libaesnixx INTERFACE libaesni)
diff --git a/utils/cxx/include/aesnixx/all.hpp b/utils/cxx/include/aesnixx/all.hpp
deleted file mode 100644
index cf00535..0000000
--- a/utils/cxx/include/aesnixx/all.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * \file
- * \author Egor Tensin <Egor.Tensin@gmail.com>
- * \date 2015
- * \copyright This file is licensed under the terms of the MIT License.
- * See LICENSE.txt for details.
- */
-
-#pragma once
-
-#include "error.hpp"
diff --git a/utils/cxx/include/aesnixx/error.hpp b/utils/cxx/include/aesnixx/error.hpp
deleted file mode 100644
index dd908c5..0000000
--- a/utils/cxx/include/aesnixx/error.hpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * \file
- * \author Egor Tensin <Egor.Tensin@gmail.com>
- * \date 2015
- * \copyright This file is licensed under the terms of the MIT License.
- * See LICENSE.txt for details.
- */
-
-#pragma once
-
-#include <aesni/all.h>
-
-#include <cstdlib>
-
-#include <stdexcept>
-#include <string>
-#include <vector>
-
-namespace aesni
-{
- class ErrorDetailsThrowsInDestructor
- {
- public:
- ErrorDetailsThrowsInDestructor()
- {
- aesni_initialize_error_details(get());
- }
-
- ~ErrorDetailsThrowsInDestructor()
- {
- if (aesni_is_error(aesni_get_error_code(get())))
- {
- std::vector<char> msg;
- msg.resize(aesni_format_error(get(), NULL, 0));
- aesni_format_error(get(), msg.data(), msg.size());
- throw std::runtime_error(std::string(msg.begin(), msg.end()));
- }
- }
-
- AesNI_ErrorDetails* get() { return &m_impl; }
-
- operator AesNI_ErrorDetails*() { return get(); }
-
- private:
- AesNI_ErrorDetails m_impl;
- };
-}