Start experimenting with full generation of all of the numeric types.

Previously, we used a little bit of generation to drive a lot of Rust
macros. This works, but it's a little confusing to read and write. In
addition, we used a lot of implementations with variable timings based
on their input, which isn't great for crypto. This is the start of an
attempt to just generate all of the relevant Rust code directly, and to
use timing-channel resistant implementations for most of the routines.
This commit is contained in:
2019-07-15 17:39:06 -07:00
parent 666378b14b
commit fa872c951a
46 changed files with 696 additions and 203 deletions

View File

@@ -0,0 +1,29 @@
cabal-version: 2.0
-- Initial package description 'generation.cabal' generated by 'cabal
-- init'. For further documentation, see
-- http://haskell.org/cabal/users-guide/
name: generation
version: 0.1.0.0
synopsis: Generates the cryptonum Rust library, based on requirements.
homepage: http://github.com/acw/cryptonum
license: ISC
license-file: LICENSE
author: Adam Wick
maintainer: awick@uhsure.com
copyright: 2019
category: Math
build-type: Simple
extra-source-files: CHANGELOG.md
executable generation
main-is: Main.hs
other-modules: Gen, Requirements, UnsignedBase
-- other-extensions:
build-depends: base ^>=4.12.0.0,
containers,
directory,
filepath,
mtl
hs-source-dirs: src
default-language: Haskell2010