fact: Definition enc {L : { fset Location }} (m : Words) (k : Key) : code L [interface] ('fin (2^n) × 'fin (2^n)) := {code r ← sample uniform i_words ;; let pad := PRF r k in let c := m ⊕ pad in ret (r, c) }.
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) Coq(Utf8) extructures(ord fset fmap) Equations(Equations)