diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-10 09:06:25 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-10 09:06:25 +0300 |
commit | b7216e86c20ba804c2ced975219df23bb834c3cf (patch) | |
tree | 62fe08cbde2c1426af09e57923d89a7780915720 | |
parent | test: add Pylint configuration + fix warnings (diff) | |
download | aes-tools-b7216e86c20ba804c2ced975219df23bb834c3cf.tar.gz aes-tools-b7216e86c20ba804c2ced975219df23bb834c3cf.zip |
code style
-rw-r--r-- | src/aes.c | 10 | ||||
-rw-r--r-- | src/box.c | 10 | ||||
-rw-r--r-- | src/box_aes.c | 10 | ||||
-rw-r--r-- | src/c/aes128.c | 10 | ||||
-rw-r--r-- | src/c/aes192.c | 10 | ||||
-rw-r--r-- | src/c/aes256.c | 10 | ||||
-rw-r--r-- | src/error.c | 10 | ||||
-rw-r--r-- | src/padding.c | 10 | ||||
-rw-r--r-- | utils/data_parsers.hpp | 4 |
9 files changed, 48 insertions, 36 deletions
@@ -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> @@ -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; |