From: Kees Monshouwer Date: Thu, 6 Aug 2015 22:43:05 +0000 (+0200) Subject: ed25519signers.cc whitespace and comments X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~62^2~21^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a66d649545a943c653bdc2547e22f4e37eae10;p=thirdparty%2Fpdns.git ed25519signers.cc whitespace and comments --- diff --git a/pdns/ed25519signers.cc b/pdns/ed25519signers.cc index 3060b6a8a5..df82c38679 100644 --- a/pdns/ed25519signers.cc +++ b/pdns/ed25519signers.cc @@ -1,4 +1,3 @@ -// utf-8 UTF-8 utf8 UTF8 extern "C" { #ifdef HAVE_CONFIG_H #include "config.h" @@ -19,8 +18,8 @@ public: void create(unsigned int bits); storvector_t convertToISCVector() const; std::string getPubKeyHash() const; - std::string sign(const std::string& hash) const; - std::string hash(const std::string& hash) const; + std::string sign(const std::string& hash) const; + std::string hash(const std::string& hash) const; bool verify(const std::string& msg, const std::string& signature) const; std::string getPublicKeyString() const; int getBits() const; @@ -37,7 +36,6 @@ public: private: unsigned char d_pubkey[PUBLICKEYBYTES]; unsigned char d_seckey[SECRETKEYBYTES]; - }; void ED25519DNSCryptoKeyEngine::create(unsigned int bits) @@ -98,7 +96,7 @@ std::string ED25519DNSCryptoKeyEngine::getPublicKeyString() const return string((char*)d_pubkey, PUBLICKEYBYTES); } -void ED25519DNSCryptoKeyEngine::fromPublicKeyString(const std::string&input) +void ED25519DNSCryptoKeyEngine::fromPublicKeyString(const std::string&input) { memcpy(d_pubkey, input.c_str(), PUBLICKEYBYTES); }