Skip to content

Commit

Permalink
build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dtumad committed Mar 10, 2024
1 parent dce6c36 commit 716f85a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ and further extend this with various assumptions about run times of computations
-/

open_locale big_operators ennreal
open oracle_comp oracle_spec
open oracle_comp oracle_spec asymptotics

/-- An `algorithmic_homogenous_space` is a homogenous space where operations are all `poly_time`.
Uses mathlib's definition of an `add_torsor`, which is a bijective group action.
Expand Down
2 changes: 1 addition & 1 deletion src/crypto_foundations/primitives/asymm_enc.lean
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,6 @@ variables {spec : ℕ → oracle_spec} {M PK SK C : ℕ → Type}

def ind_cpa_secure (enc_scheme : asymm_enc_scheme spec M PK SK C) : Prop :=
∀ (adv : Π (sp : ℕ), (enc_scheme sp).ind_cpa_adv),
negligible (λ sp, (ind_cpa_exp (adv sp)).advantage)
asymptotics.negligible (λ sp, (ind_cpa_exp (adv sp)).advantage)

end asymm_enc_scheme
2 changes: 1 addition & 1 deletion src/crypto_foundations/primitives/hash_function.lean
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ variables {spec : ℕ → oracle_spec} {K I O : ℕ → Type}
of winning the `collision_finding_experiment` as the security parameter increases -/
def collision_resistant (hf : hash_scheme spec K I O) : Prop :=
∀ (adv : Π (sp : ℕ), (hf sp).collision_finding_adv),
negligible (λ sp, (collision_finding_exp (adv sp)).advantage)
asymptotics.negligible (λ sp, (collision_finding_exp (adv sp)).advantage)

end hash_scheme

0 comments on commit 716f85a

Please sign in to comment.