Changeset 2055

Show
Ignore:
Timestamp:
02/27/11 10:33:39 (2 years ago)
Author:
ahu
Message:

fix up the ECDSA from the crypto++ too for the new BIND field ordering

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/cryptoppsigners.cc

    r1966 r2055  
    1717  void create(unsigned int bits); 
    1818  string getName() const { return "CryptoPP ECDSA"; } 
    19   stormap_t convertToISCMap() const; 
     19  storvector_t convertToISCVector() const; 
    2020  std::string getPubKeyHash() const; 
    2121  std::string sign(const std::string& msg) const;  
     
    6262 
    6363template<class HASHER, class CURVE, int BITS> 
    64 std::map<std::string, std::string> CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BITS>::convertToISCMap() const 
     64DNSCryptoKeyEngine::storvector_t CryptoPPECDSADNSCryptoKeyEngine<HASHER,CURVE,BITS>::convertToISCVector() const 
    6565{ 
    6666   /* Algorithm: 13 (ECDSAP256SHA256) 
     
    7474    algostr+=" (?)"; 
    7575   
    76   map<string,string> stormap; 
    77   stormap["Algorithm"]=algostr; 
     76  storvector_t storvect; 
     77  storvect.push_back(make_pair("Algorithm", algostr)); 
    7878   
    7979  const CryptoPP::Integer& pe=d_key->GetPrivateExponent(); 
    8080  unsigned char buffer[pe.MinEncodedSize()]; 
    8181  pe.Encode(buffer, pe.MinEncodedSize()); 
    82   stormap["PrivateKey"] = string((char*)buffer, sizeof(buffer)); 
    83   return stormap; 
     82  storvect.push_back(make_pair("PrivateKey", string((char*)buffer, sizeof(buffer)))); 
     83  return storvect; 
    8484} 
    8585template<class HASHER, class CURVE, int BITS>