Brian Huffman
7e34c25e4d
Switch to infix syntax for blocks
and padding
operators.
...
"x /^ y" is x/y rounded up, i.e. the least n such that x <= y*n.
"x %^ y" is the least k such that x+k is a multiple of y.
For comparison,
"x / y" is x/y rounded down, i.e. the greatest n such that x >= y*n.
"x % y" is the least k such that x-k is a multiple of y.
The new syntax is much more suggestive of the relation to "/" and "%".
2017-09-28 10:26:31 -07:00
Brian Huffman
f04908a551
Adapt example code to use new blocks
and padding
operators.
2017-09-27 13:55:55 -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
Brian Huffman
1322156d28
Remove trailing whitespace
2016-02-19 10:08:20 -08:00
Adam C. Foltzer
4d3fc9a413
Update copyright dates and add missing headers
2016-01-19 18:19:35 -08:00
Thomas M. DuBuisson
46599a03b5
make SHA1 typecheck with Cryptol 2.3
...
There were some spurious constraints to help the previous typechecker figure
things out that now confuse the new one... ugh.
2016-01-12 17:22:22 -08:00
Adam C. Foltzer
0536d0f15a
update copyright years
2015-03-24 11:19:52 -07:00
Dylan McNamee
a04a2444a5
Note: NIST 180-4 has an inconsistency in section 4.1.1 - the prose
...
says 0<=t<=80, but the formula says 0<=t<=79. Later, they refer to
80 elements, so we're going with the formula's specification
2014-04-21 13:50:00 -07:00
Dylan McNamee
744808f67f
Making the SHA1 "f" look more like the NIST SHA1 "f"
2014-04-21 13:42:56 -07:00
Dylan McNamee
4f57c0a93f
polishing
2014-04-21 11:40:07 -07:00
Adam C. Foltzer
ba0a0e8576
Initial import from internal repo
2014-04-17 15:34:25 -07:00