aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 09:06:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 09:06:25 +0300
commitb7216e86c20ba804c2ced975219df23bb834c3cf (patch)
tree62fe08cbde2c1426af09e57923d89a7780915720
parenttest: add Pylint configuration + fix warnings (diff)
downloadaes-tools-b7216e86c20ba804c2ced975219df23bb834c3cf.tar.gz
aes-tools-b7216e86c20ba804c2ced975219df23bb834c3cf.zip
code style
-rw-r--r--src/aes.c10
-rw-r--r--src/box.c10
-rw-r--r--src/box_aes.c10
-rw-r--r--src/c/aes128.c10
-rw-r--r--src/c/aes192.c10
-rw-r--r--src/c/aes256.c10
-rw-r--r--src/error.c10
-rw-r--r--src/padding.c10
-rw-r--r--utils/data_parsers.hpp4
9 files changed, 48 insertions, 36 deletions
diff --git a/src/aes.c b/src/aes.c
index be4cec2..0aded1a 100644
--- a/src/aes.c
+++ b/src/aes.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/src/box.c b/src/box.c
index 7302142..c7e1e90 100644
--- a/src/box.c
+++ b/src/box.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/src/box_aes.c b/src/box_aes.c
index 145ee77..ddf6f02 100644
--- a/src/box_aes.c
+++ b/src/box_aes.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/src/c/aes128.c b/src/c/aes128.c
index 0653889..a1bad40 100644
--- a/src/c/aes128.c
+++ b/src/c/aes128.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/src/c/aes192.c b/src/c/aes192.c
index 02fbf94..d661b78 100644
--- a/src/c/aes192.c
+++ b/src/c/aes192.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/src/c/aes256.c b/src/c/aes256.c
index 804a393..2190322 100644
--- a/src/c/aes256.c
+++ b/src/c/aes256.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/src/error.c b/src/error.c
index 354183d..3bf3ed2 100644
--- a/src/error.c
+++ b/src/error.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/src/padding.c b/src/padding.c
index 7163ac2..4923f82 100644
--- a/src/padding.c
+++ b/src/padding.c
@@ -1,7 +1,9 @@
-// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "AES tools" project.
-// For details, see https://github.com/egor-tensin/aes-tools.
-// Distributed under the MIT License.
+/*
+ * Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "AES tools" project.
+ * For details, see https://github.com/egor-tensin/aes-tools.
+ * Distributed under the MIT License.
+ */
#include <aes/all.h>
diff --git a/utils/data_parsers.hpp b/utils/data_parsers.hpp
index a3e3d49..89270fe 100644
--- a/utils/data_parsers.hpp
+++ b/utils/data_parsers.hpp
@@ -16,8 +16,6 @@
static std::istream& operator>>(std::istream& is, aes::Mode& dest)
{
- static const char* const argument_name = "mode";
-
std::string src;
is >> src;
@@ -41,8 +39,6 @@ static std::istream& operator>>(std::istream& is, aes::Mode& dest)
static std::istream& operator>>(std::istream& is, aes::Algorithm& dest)
{
- static const char* const argument_name = "algorithm";
-
std::string src;
is >> src;