mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-18 05:21:57 +03:00
20b9b1c193
Fixes #550.
8 lines
202 B
Plaintext
8 lines
202 B
Plaintext
pad : {n, m, b} (64>=width(n), b==512-((n+65)%512), m==65+n+b) => [n]->[m]
|
|
pad message = (message#[True])#(0:[b])#sz
|
|
where
|
|
sz : [64]
|
|
sz = length message
|
|
|
|
test = pad
|