diff options
| author | J08nY | 2017-02-05 03:59:52 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-05 03:59:52 +0100 |
| commit | 763fc80153c5e9287f1b0f0609b11fb4f50c90ab (patch) | |
| tree | 5cd6e7acc4512cca65bcc16a74f3b63879b2d3bc /src/field.h | |
| parent | 3d9bf583ccc5eea61c5f78f52d1e2073daee924c (diff) | |
| download | ecgen-0.2.0.tar.gz ecgen-0.2.0.tar.zst ecgen-0.2.0.zip | |
Diffstat (limited to 'src/field.h')
| -rw-r--r-- | src/field.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/field.h b/src/field.h new file mode 100644 index 0000000..55d6bf9 --- /dev/null +++ b/src/field.h @@ -0,0 +1,39 @@ +/* + * ecgen, tool for generating Elliptic curve domain parameters + * Copyright (C) 2017 J08nY + */ +#ifndef ECGEN_FIELD_H +#define ECGEN_FIELD_H + +#include "poly.h" +#include "gp.h" + +/** + * + * @param bits + * @return + */ +GEN field_primer(long bits); + +/** + * + * @param bits + * @return + */ +GEN field_binaryr(long bits); + +/** + * Extract a field representation from a field. + * - char(field) == 2: + * returns the vector of powers of middle coefficients of the reduction polynomial. + * - char(field) != 2: + * returns the field characteristic(p).- + * + * @param field + * @return field representation + */ +GEN field_params(GEN field); + +GEN field_elementi(GEN element); + +#endif //ECGEN_FIELD_H |
