Update example cryptol code to use infix syntax.

This commit is contained in:
Brian Huffman 2017-10-03 12:31:37 -07:00
parent 7e34c25e4d
commit b107e606a2

View File

@ -1079,8 +1079,8 @@ takes a 256-bit key and 96-bit nonce as follows:
//ct in this function has tag removed
AeadConstruction (AAD : [n][8]) (CT : [m][8]) = (AAD # padding1 # CT # padding2 # adlen # ptlen) where
padding1 = (zero:[padding n 16][8])
padding2 = (zero:[padding m 16][8])
padding1 = (zero:[n %^ 16][8])
padding2 = (zero:[m %^ 16][8])
adlen : [8][8]
adlen = groupBy`{8}(littleendian (groupBy`{8}(`n:[64])))
ptlen : [8][8]