aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_elg.cpp
diff options
context:
space:
mode:
authorTomasz Frydrych <[email protected]>2017-05-01 15:03:52 +0200
committerTomasz Frydrych <[email protected]>2017-05-01 15:03:52 +0200
commit87c0fae706140b0a2a7a3fda9dd813474172fa2a (patch)
tree28930efab4d290dcebb89666d46050edd06703fd /src/tests/test_elg.cpp
parent29cc6bebe132a34f882d450b35a69bf71bb3e27b (diff)
Reformat code with astyle + fix code style
Diffstat (limited to 'src/tests/test_elg.cpp')
-rw-r--r--src/tests/test_elg.cpp26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/tests/test_elg.cpp b/src/tests/test_elg.cpp
index 8219b0490..9d024cb5a 100644
--- a/src/tests/test_elg.cpp
+++ b/src/tests/test_elg.cpp
@@ -7,8 +7,8 @@
#include "tests.h"
#if defined(BOTAN_HAS_ELGAMAL)
- #include <botan/elgamal.h>
- #include "test_pubkey.h"
+ #include <botan/elgamal.h>
+ #include "test_pubkey.h"
#endif
namespace Botan_Tests {
@@ -20,12 +20,12 @@ namespace {
class ElGamal_KAT_Tests : public PK_Encryption_Decryption_Test
{
public:
- ElGamal_KAT_Tests() : PK_Encryption_Decryption_Test(
- "ElGamal",
- "pubkey/elgamal.vec",
- "P,G,X,Msg,Nonce,Ciphertext",
- "Padding")
- {}
+ ElGamal_KAT_Tests()
+ : PK_Encryption_Decryption_Test(
+ "ElGamal",
+ "pubkey/elgamal.vec",
+ "P,G,X,Msg,Nonce,Ciphertext",
+ "Padding") {}
std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) override
{
@@ -43,8 +43,14 @@ class ElGamal_KAT_Tests : public PK_Encryption_Decryption_Test
class ElGamal_Keygen_Tests : public PK_Key_Generation_Test
{
public:
- std::vector<std::string> keygen_params() const override { return { "modp/ietf/1024", "modp/ietf/2048" }; }
- std::string algo_name() const override { return "ElGamal"; }
+ std::vector<std::string> keygen_params() const override
+ {
+ return { "modp/ietf/1024", "modp/ietf/2048" };
+ }
+ std::string algo_name() const override
+ {
+ return "ElGamal";
+ }
};
BOTAN_REGISTER_TEST("elgamal_encrypt", ElGamal_KAT_Tests);