proxygen
ECSignatureTest.cpp File Reference
#include <gtest/gtest.h>
#include <fizz/crypto/ECCurve.h>
#include <fizz/crypto/signature/Signature.h>
#include <folly/String.h>

Go to the source code of this file.

Classes

struct  fizz::testing::Params
 
class  fizz::testing::ECDSATest
 
class  fizz::testing::ECDSA256Test
 
class  fizz::testing::ECDSA384Test
 
class  fizz::testing::ECDSA521Test
 

Namespaces

 fizz
 
 fizz::testing
 

Functions

void fizz::testing::setPoint (EcKeyUniquePtr &key, std::string x, std::string y)
 
EvpPkeyUniquePtr fizz::testing::getKey (int nid, const Params &param)
 
void fizz::testing::modifySig (folly::IOBuf *sig)
 
void fizz::testing::modifyData (folly::IOBuf *sig, std::string &msg)
 
 fizz::testing::TEST_P (ECDSA256Test, TestSignature)
 
 fizz::testing::TEST_P (ECDSA384Test, TestSignature)
 
 fizz::testing::TEST_P (ECDSA521Test, TestSignature)
 
 fizz::testing::INSTANTIATE_TEST_CASE_P (TestVectors, ECDSA256Test,::testing::Values(Params{"sample","C9AFA9D845BA75166B5C215767B1D6934E50C3DB36E89B127B8A622B120F6721","60FED4BA255A9D31C961EB74C6356D68C049B8923B61FA6CE669622E60F29FB6","7903FE1008B8BC99A41AE9E95628BC64F2F1B20C2D7E9F5177A3C294D4462299"}))
 
 fizz::testing::INSTANTIATE_TEST_CASE_P (TestVectors, ECDSA384Test,::testing::Values(Params{"sample","6B9D3DAD2E1B8C1C05B19875B6659F4DE23C3B667BF297BA9AA47740787137D8""96D5724E4C70A825F872C9EA60D2EDF5","EC3A4E415B4E19A4568618029F427FA5DA9A8BC4AE92E02E06AAE5286B300C64""DEF8F0EA9055866064A254515480BC13","8015D9B72D7D57244EA8EF9AC0C621896708A59367F9DFB9F54CA84B3F1C9DB1""288B231C3AE0D4FE7344FD2533264720"}))
 
 fizz::testing::INSTANTIATE_TEST_CASE_P (TestVectors, ECDSA521Test,::testing::Values(Params{"sample","00FAD06DAA62BA3B25D2FB40133DA757205DE67F5BB0018FEE8C86E1B68C7E75C""AA896EB32F1F47C70855836A6D16FCC1466F6D8FBEC67DB89EC0C08B0E996B83""538","01894550D0785932E00EAA23B694F213F8C3121F86DC97A04E5A7167DB4E5BCD3""71123D46E45DB6B5D5370A7F20FB633155D38FFA16D2BD761DCAC474B9A2F502""3A4","00493101C962CD4D2FDDF782285E64584139C2F91B47F87FF82354D6630F746A2""8A0DB25741B5B34A828008B22ACC23F924FAAFBD4D33F81EA66956DFEAA2BFDF""CF5"}))