-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.option.ocvl
27 lines (23 loc) · 995 Bytes
/
lib.option.ocvl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(* Analysing the HPKE Standard - Supplementary Material
Joël Alwen; Bruno Blanchet; Eduard Hauck; Eike Kiltz; Benjamin Lipp;
Doreen Riepel
This is supplementary material accompanying the paper:
Joël Alwen, Bruno Blanchet, Eduard Hauck, Eike Kiltz, Benjamin Lipp,
and Doreen Riepel. Analysing the HPKE Standard. In Anne Canteaut and
Francois-Xavier Standaert, editors, Eurocrypt 2021, Lecture Notes in
Computer Science, pages 87-116, Zagreb, Croatia, October 2021. Springer.
Long version: https://eprint.iacr.org/2020/1499 *)
def OptionType_1(option, option_Some, option_None, input) {
type option.
fun option_Some(input): option [data].
const option_None: option.
equation forall x: input;
option_Some(x) <> option_None.
}
def OptionType_2(option, option_Some, option_None, input1, input2) {
type option.
fun option_Some(input1, input2): option [data].
const option_None: option.
equation forall x1: input1, x2: input2;
option_Some(x1, x2) <> option_None.
}