cryptol/examples/Cipher.cry

12 lines
283 B
Plaintext
Raw Normal View History

2014-04-18 02:34:25 +04:00
/*
* Copyright (c) 2013-2014 Galois, Inc.
* Distributed under the terms of the BSD3 license (see LICENSE file)
*/
module Cipher where
type Cipher KeySize BlockSize =
{ encrypt : [KeySize] -> [BlockSize] -> [BlockSize]
, decrypt : [KeySize] -> [BlockSize] -> [BlockSize]
}