Brian Huffman
a5a7a393be
Add definitions of SHAKE128 and SHAKE256 to keccak.cry
2017-10-04 10:39:10 -07:00
brianhuffman
73de3f787f
Merge pull request #453 from GaloisInc/blocks-padding
...
Implement `blocks` and `padding` operators for numeric types.
2017-10-04 07:11:19 -07:00
Brian Huffman
9773782ba4
Tweak correctness property to match keccak documentation.
2017-10-04 07:02:55 -07:00
Brian Huffman
16e949b0d7
Fix bugs/warnings in keccak.cry, and add test vectors and other properties.
...
The switch to Cryptol 2 introduced some endianness bugs.
Also, the original version omitted the 0b01 "suffix" that is
specified by SHA3.
2017-10-03 18:06:52 -07:00
robdockins
fc4fe4dc1e
Merge pull request #309 from clinty/cast5
...
CAST5 example
2017-10-03 15:27:30 -07:00
Brian Huffman
7802747a1e
Simplify keccak.cry using new type operators for padding.
2017-10-03 13:57:16 -07:00
Brian Huffman
96bff5c4a8
Update keccak.cry example to work with Cryptol 2.x
...
Fixes #458 .
2017-10-03 13:41:07 -07:00
Robert Dockins
cd9ffed00b
Update examples to use (/\) instead of (&&) where appropriate,
...
and to squash other warnings related to the upcomming precedence change.
2016-08-22 18:14:44 -07:00
Adrian Herrera
bedeeb0883
Crytol spec for MISTY1 cipher (as described in RFC 2994)
2016-06-07 22:42:16 +10:00
Brian Huffman
5e5184d5ee
Add alternative implementations of bivium and trivium ciphers
2016-02-19 14:24:07 -08:00
Brian Huffman
ab82097033
Fix bug/typo in Trivium example implementation
...
See also the Trivium specification:
http://www.ecrypt.eu.org/stream/ciphers/trivium/trivium.pdf
2016-02-19 14:04:52 -08:00
Brian Huffman
1322156d28
Remove trailing whitespace
2016-02-19 10:08:20 -08:00
Aaron Tomb
9809e176eb
Add examples from Alexander Semenov
...
A new Cryptol user! Alexander Semenov from the Russian Academy of
Sciences is the developer of the Transalg tool, which can also translate
cryptographic algorithms (written in imperative form) into SAT problems.
He recently started experimenting with Cryptol, and wrote up
implementations of several stream ciphers, included in this commit.
2016-02-18 15:08:17 -08:00
Clint Adams
07088eddef
CAST5 example
2016-02-05 15:26:25 -05:00
Adam C. Foltzer
4d3fc9a413
Update copyright dates and add missing headers
2016-01-19 18:19:35 -08:00
Adam C. Foltzer
07da2018b7
switch to more portable seeding for random
...
The `random` primitive previously took a `[32]` seed, but this causes
inconsistency between 32-bit and 64-bit platforms when the seed is large
enough to wrap around in GHC's representation of an `Int`. This patch
switches to an API that seeds directly with four 64-bit words, and so
should behave the same way on our supported platforms.
2016-01-19 18:17:34 -08:00
Adam C. Foltzer
9e179d14bc
finally add Even-Mansour example; closes #124
2016-01-12 16:49:47 -08:00
Aaron Tomb
44f8bcd310
Fix comment in Keccak example
...
Note: this is actually Cryptol 1 code. We should port it. I've started
the process, but don't have a complete port yet.
2015-08-28 09:49:29 -07:00
Adam C. Foltzer
0536d0f15a
update copyright years
2015-03-24 11:19:52 -07:00
Adam C. Foltzer
22df9717cb
properties and cleanup for new contrib examples
2015-01-18 12:46:03 -08:00
Adam C. Foltzer
d7e9b9b3c6
add README for contrib
2015-01-18 12:45:39 -08:00
Adam C. Foltzer
473b175922
move RC4 to contrib directory
2015-01-18 11:47:40 -08:00
Adam C. Foltzer
85e1725b29
Merge pull request #69 from mknight-tag/master
...
Add MKRAND RBG to contrib
2015-01-18 11:42:21 -08:00
M Knight
ee86eb87fd
Back out ND until Cryptol exposes IO Monad [fd4f4]
2014-09-24 09:13:28 -05:00
M Knight
502816fbd3
Add MKRAND RBG
2014-08-10 10:47:19 -05:00
Adam C. Foltzer
2cf71679c6
Merge branch 'master' into devel
2014-04-27 20:51:56 -07:00
David Lazar
fe67268088
Simplify type constraints.
2014-04-24 17:33:43 -04:00
David Lazar
bda2596f30
Minor whitespace tweak.
2014-04-24 17:28:25 -04:00
David Lazar
e1c2ddec55
Fix formatting in speck.cry.
2014-04-24 17:27:34 -04:00
David Lazar
46c93d1a33
spec.cry should be speck.cry.
2014-04-24 17:19:20 -04:00
Dylan McNamee
bba0c10cf7
keccak is version 1, and proving too tricky to convert for now.
...
Moving simon and spec to contrib, to "seed the pool" of contributed
examples.
2014-04-22 17:26:11 -07:00
Adam C. Foltzer
bca8d997f5
add David's Keccak implementation
2014-04-21 11:46:55 -07:00
Adam C. Foltzer
63b77b82d3
add David's Keccak implementation
2014-04-21 11:39:07 -07:00