]> granicus.if.org Git - pdns/commitdiff
ed25519signers.cc whitespace and comments
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 6 Aug 2015 22:43:05 +0000 (00:43 +0200)
committermind04 <mind04@monshouwer.org>
Sat, 8 Aug 2015 12:31:00 +0000 (14:31 +0200)
pdns/ed25519signers.cc

index 3060b6a8a52877257eabe58da24a5e4de9df694f..df82c386791f6fb31eae49856d27a8b54cfa4be1 100644 (file)
@@ -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);
 }