fact: Definition CCA_EVAL_HYB_pkg: package CCA_EVAL_HYB_locs [interface #val #[eavesdrop]: 'word × 'word → 'word ] [interface #val #[eavesdrop]: 'word × 'word → 'word × 'word ; #val #[decrypt]: 'word × 'word → 'option 'word ] := [package #def #[eavesdrop] ('(ml, mr): 'word × 'word): 'word × 'word { #import {sig #[eavesdrop]: 'word × 'word → 'word } as eavesdrop ;; S ← get S_loc ;; c ← eavesdrop (ml, mr) ;; T ← get T_loc ;; km ← kgen km_loc ;; let t := mac km c in #put T_loc := setm T (c, t) tt ;; #put S_loc := setm S (c, t) tt ;; ret (c, t) } ; #def #[decrypt] ('(c, t): 'word × 'word): 'option 'word { ret None } ].
imports: Relational(OrderEnrichedCategory GenericRulesSimple) mathcomp(all_ssreflect all_algebra reals distr realsum ssrnat ssreflect ssrfun ssrbool ssrnum eqtype choice seq) Mon(SPropBase) Crypt(Axioms ChoiceAsOrd SubDistr Couplings UniformDistrLemmas FreeProbProg Theta_dens RulesStateProb pkg_core_definition choice_type pkg_composition pkg_rhl Package Prelude) extructures(ord fset fmap) Equations(Equations)