-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
47 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
rule KEMTLS_KeyGen: | ||
rule KEMTLS_KEM_s_KeyGen: | ||
let | ||
pk_P = KEM_s_PK(~sk_P) | ||
in | ||
[ | ||
Fr(~sk_P) | ||
] | ||
--[ | ||
RegisteredLTK($P, pk_P) | ||
RegisteredLTK($P, pk_P, 'KEM_s') | ||
]-> | ||
[ | ||
!Ltk($P, pk_P, ~sk_P), | ||
!Pk($P, pk_P), | ||
!Ltk($P, pk_P, ~sk_P, 'KEM_s'), | ||
!Pk($P, pk_P, 'KEM_s'), | ||
Out(pk_P) | ||
] | ||
|
||
rule KEMTLS_KEM_c_KeyGen: | ||
let | ||
pk_P = KEM_c_PK(~sk_P) | ||
in | ||
[ | ||
Fr(~sk_P) | ||
] | ||
--[ | ||
RegisteredLTK($P, pk_P, 'KEM_c') | ||
]-> | ||
[ | ||
!Ltk($P, pk_P, ~sk_P, 'KEM_c'), | ||
!Pk($P, pk_P, 'KEM_c'), | ||
Out(pk_P) | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
functions: | ||
KEM_e_PK/1, KEM_e_Encaps_ct/2, KEM_e_Encaps_ss/2, KEM_e_Decaps/2, | ||
KEM_s_PK/1, KEM_s_Encaps_ct/2, KEM_s_Encaps_ss/2, KEM_s_Decaps/2, | ||
KEM_c_PK/1, KEM_c_Encaps_ct/2, KEM_c_Encaps_ss/2, KEM_c_Decaps/2, | ||
HKDFExtract/2, HKDFExpand/3, | ||
HMAC/2 | ||
|
||
equations: | ||
// correctness of KEM_e decapsulation | ||
KEM_e_Decaps(KEM_e_Encaps_ct(KEM_e_PK(sk), coins), sk) | ||
= KEM_e_Encaps_ss(KEM_e_PK(sk), coins), | ||
// correctness of KEM_e decapsulation | ||
// correctness of KEM_s decapsulation | ||
KEM_s_Decaps(KEM_s_Encaps_ct(KEM_s_PK(sk), coins), sk) | ||
= KEM_s_Encaps_ss(KEM_s_PK(sk), coins) | ||
= KEM_s_Encaps_ss(KEM_s_PK(sk), coins), | ||
// correctness of KEM_c decapsulation | ||
KEM_c_Decaps(KEM_c_Encaps_ct(KEM_c_PK(sk), coins), sk) | ||
= KEM_c_Encaps_ss(KEM_c_PK(sk), coins) |