-
Notifications
You must be signed in to change notification settings - Fork 8
/
cgbn_stage1.h
42 lines (30 loc) · 1.16 KB
/
cgbn_stage1.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* cgbn_stage1.h: header for CGBN (GPU) based ecm stage 1.
Copyright 2021 Seth Troisi
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along
with this program; see the file COPYING. If not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02111-1307, USA.
*/
#ifndef _CGBN_STAGE1_H
#define _CGBN_STAGE1_H 1
#include <stdint.h>
#include <gmp.h>
#ifdef __cplusplus
extern "C" {
#endif
int cgbn_ecm_stage1(mpz_t *factors, int *array_found,
const mpz_t N, const mpz_t s,
uint32_t curves, uint32_t sigma,
float *gputime, int verbose);
#ifdef __cplusplus
}
#endif
#endif /* _CGBN_STAGE1_H */