MCPcopy Create free account
hub / github.com/LUX-Core/lux / ValidateElGamal

Function ValidateElGamal

src/cryptopp/validat2.cpp:638–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638bool ValidateElGamal()
639{
640 cout << "\nElGamal validation suite running...\n\n";
641 bool pass = true;
642 {
643 FileSource fc(CRYPTOPP_DATA_DIR "TestData/elgc1024.dat", true, new HexDecoder);
644 ElGamalDecryptor privC(fc);
645 ElGamalEncryptor pubC(privC);
646 privC.AccessKey().Precompute();
647 ByteQueue queue;
648 privC.AccessKey().SavePrecomputation(queue);
649 privC.AccessKey().LoadPrecomputation(queue);
650
651 pass = CryptoSystemValidate(privC, pubC) && pass;
652 }
653 return pass;
654}
655
656bool ValidateDLIES()
657{

Callers 2

ValidateFunction · 0.85
ValidateAllFunction · 0.85

Calls 4

CryptoSystemValidateFunction · 0.85
PrecomputeMethod · 0.45
SavePrecomputationMethod · 0.45
LoadPrecomputationMethod · 0.45

Tested by 1

ValidateFunction · 0.68