Changeset 2055
- Timestamp:
- 02/27/11 10:33:39 (2 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/cryptoppsigners.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/cryptoppsigners.cc
r1966 r2055 17 17 void create(unsigned int bits); 18 18 string getName() const { return "CryptoPP ECDSA"; } 19 stor map_t convertToISCMap() const;19 storvector_t convertToISCVector() const; 20 20 std::string getPubKeyHash() const; 21 21 std::string sign(const std::string& msg) const; … … 62 62 63 63 template<class HASHER, class CURVE, int BITS> 64 std::map<std::string, std::string> CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BITS>::convertToISCMap() const64 DNSCryptoKeyEngine::storvector_t CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BITS>::convertToISCVector() const 65 65 { 66 66 /* Algorithm: 13 (ECDSAP256SHA256) … … 74 74 algostr+=" (?)"; 75 75 76 map<string,string> stormap;77 stor map["Algorithm"]=algostr;76 storvector_t storvect; 77 storvect.push_back(make_pair("Algorithm", algostr)); 78 78 79 79 const CryptoPP::Integer& pe=d_key->GetPrivateExponent(); 80 80 unsigned char buffer[pe.MinEncodedSize()]; 81 81 pe.Encode(buffer, pe.MinEncodedSize()); 82 stor map["PrivateKey"] = string((char*)buffer, sizeof(buffer));83 return stor map;82 storvect.push_back(make_pair("PrivateKey", string((char*)buffer, sizeof(buffer)))); 83 return storvect; 84 84 } 85 85 template<class HASHER, class CURVE, int BITS>