Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
403 B

  1. // elgamal.cpp - written and placed in the public domain by Wei Dai
  2. #include "pch.h"
  3. #include "elgamal.h"
  4. #include "asn.h"
  5. #include "nbtheory.h"
  6. NAMESPACE_BEGIN(CryptoPP)
  7. #if !defined(NDEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
  8. void ElGamal_TestInstantiations()
  9. {
  10. ElGamalEncryptor test1(1, 1, 1);
  11. ElGamalDecryptor test2(NullRNG(), 123);
  12. ElGamalEncryptor test3(test2);
  13. }
  14. #endif
  15. NAMESPACE_END