constantine/constantine.nimble
Mamy André-Ratsimbazafy 301cf20195
Use Montgomery representation by default for Finite Field
- Fix montyMagic, modular inversion mode 2^2k was missing an iteration
- Fix test for buffer size in BigInt serialization
- Add UINT/Hex serialization for finite fields
- Montgomery conversion and redc
2020-02-15 00:26:40 +01:00

25 lines
884 B
Nim

packageName = "constantine"
version = "0.0.1"
author = "Status Research & Development GmbH"
description = "This library provides constant time big int primitives."
license = "MIT or Apache License 2.0"
srcDir = "src"
### Dependencies
requires "nim >= 1.0.6"
### Helper functions
proc test(fakeCurves: string, path: string, lang = "c") =
if not dirExists "build":
mkDir "build"
exec "nim " & lang & fakeCurves & " --outdir:build -r --hints:off --warnings:off " & path
### tasks
task test, "Run all tests":
test "", "tests/test_primitives.nim"
test "", "tests/test_io.nim"
test "", "tests/test_bigints.nim"
test "", "tests/test_bigints_multimod.nim"
test "", "tests/test_bigints_vs_gmp.nim"
test "", "tests/test_finite_fields.nim"