Add a license file
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/** Ascon-Based Lightweight Cryptography
|
||||
*
|
||||
* Author: Eric Mertens
|
||||
* Author: Eric Mertens <emertens@gmail.com>
|
||||
* License: ISC
|
||||
*
|
||||
* Key algorithms:
|
||||
* - AEAD128_encrypt/decrypt: Authenticated encryption
|
||||
@@ -30,7 +31,7 @@ private
|
||||
* block is empty (i.e., |𝑋̃ℓ| = 0).
|
||||
*/
|
||||
parse : {r, m} (fin m, fin r, r >= 1) => [m] -> ([m / r][r], [m % r])
|
||||
parse (M_ # Ml) = (split M_, Ml)
|
||||
parse (M # Ml) = (split M, Ml)
|
||||
|
||||
/** Padding rule.
|
||||
*
|
||||
@@ -48,9 +49,7 @@ private
|
||||
* of integers using Cryptol's native big-endian representation.
|
||||
*/
|
||||
toBlocks : {r, m} (r >= 1, fin r, fin m) => [m] -> [m / r + 1][r]
|
||||
toBlocks M = map reverse (M1 # [pad M2])
|
||||
where
|
||||
(M1, M2) = parse M
|
||||
toBlocks M = bitsToWords (M # 0b1 # 0)
|
||||
|
||||
// 3. Ascon Permutations
|
||||
|
||||
|
13
LICENSE
Normal file
13
LICENSE
Normal file
@@ -0,0 +1,13 @@
|
||||
Copyright 2025 Eric Mertens
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
|
Reference in New Issue
Block a user