cudadl.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. void cuda_dl(const ZZ_p &base, const ZZ_p &target, const ZZ &order,
  25. const ZZ &modulus, unsigned int dpfreq, void *data,
  26. unsigned int* launch_count, bool* filled_dp_buffer);
  27. #endif