raaz-crypto / raaz

Cryptographic library for Haskell
Apache License 2.0
68 stars 24 forks source link

Define word types for primitives #417

Closed piyush-kurur closed 4 years ago

piyush-kurur commented 4 years ago

Primitives were captured by their blocksize (which is given by an associated type). We recast this into two parts, an associated type WordType (all primitives have a basic word on which it is defined) and an associated type WordsPerBlock.