Skip to content

Commit

Permalink
chore: update F* (#72)
Browse files Browse the repository at this point in the history
* chore: update F*

* also update Comparse
  • Loading branch information
TWal authored Oct 1, 2024
1 parent 652bf22 commit ac82925
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/core/DY.Core.Bytes.fst
Original file line number Diff line number Diff line change
Expand Up @@ -2173,6 +2173,7 @@ let dh_pk_preserves_publishability tr sk =

/// Lemma for attacker knowledge theorem.

#push-options "--z3rlimit 25"
val dh_preserves_publishability:
{|crypto_invariants|} -> tr:trace ->
sk:bytes -> pk:bytes ->
Expand All @@ -2187,6 +2188,7 @@ let dh_preserves_publishability tr sk pk =
reveal_opaque (`%dh) (dh);
normalize_term_spec bytes_invariant;
normalize_term_spec get_label
#pop-options

/// User lemma (dh_pk well-formedness)

Expand Down Expand Up @@ -2642,6 +2644,7 @@ let kem_pk_preserves_publishability #ci tr sk =

/// Lemma for attacker knowledge theorem.

#push-options "--z3rlimit 25"
val kem_encap_preserves_publishability:
{|crypto_invariants|} -> tr:trace ->
pk:bytes -> nonce:bytes ->
Expand All @@ -2660,6 +2663,7 @@ let kem_encap_preserves_publishability #ci tr pk nonce =
normalize_term_spec bytes_invariant;
normalize_term_spec get_label;
assert(is_publishable tr (KemSecretShared nonce))
#pop-options

/// Lemma for attacker knowledge theorem.

Expand Down
2 changes: 1 addition & 1 deletion src/lib/hpke/DY.Lib.HPKE.Lemmas.fst
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ let get_hpke_sk_label_hpke_pk #cu tr sk = ()
/// It is a bit more complex than `DY.Core.Bytes.bytes_invariant_pk_enc`,
/// the additional complexity is explained in the comments.

#push-options "--ifuel 2"
#push-options "--ifuel 2 --z3rlimit 25"
val bytes_invariant_hpke_enc:
{|crypto_invariants|} -> {|hpke_crypto_invariants|} ->
tr:trace ->
Expand Down

0 comments on commit ac82925

Please sign in to comment.