cudadl.h 1012 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * cudadl version 0.9: Compute discrete logs in smooth group orders
  3. * using CUDA
  4. * Copyright (C) 2012 by Ryan Henry and Ian Goldberg
  5. * {rhenry,iang}@cs.uwaterloo.ca
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of version 3 of the GNU General Public License as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __CUDADL_H__
  20. #define __CUDADL_H__
  21. #include <NTL/ZZ.h>
  22. #include <NTL/ZZ_p.h>
  23. NTL_CLIENT
  24. ZZ cuda_dl(const ZZ_p &base, const ZZ_p &target, const ZZ &order,
  25. const ZZ &modulus);
  26. #endif