From b7216e86c20ba804c2ced975219df23bb834c3cf Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 10 Oct 2016 09:06:25 +0300 Subject: code style --- src/aes.c | 10 ++++++---- src/box.c | 10 ++++++---- src/box_aes.c | 10 ++++++---- src/c/aes128.c | 10 ++++++---- src/c/aes192.c | 10 ++++++---- src/c/aes256.c | 10 ++++++---- src/error.c | 10 ++++++---- src/padding.c | 10 ++++++---- utils/data_parsers.hpp | 4 ---- 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 -// 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 + * 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 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 -// 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 + * 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 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 -// 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 + * 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 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 -// 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 + * 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 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 -// 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 + * 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 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 -// 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 + * 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 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 -// 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 + * 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 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 -// 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 + * 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 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; -- cgit v1.2.3