@@ -621,20 +621,20 @@ abstract theory METCR.
621621 op dkey : key_t distr.
622622
623623 (*& Type for oracles used in M_ETCR game &*)
624- module type Oracle_METCRi_t = {
624+ module type Oraclei_METCR = {
625625 proc init() : unit
626626 proc query(x : in_t) : key_t
627627 proc get(i : int) : key_t * in_t
628628 proc nr_targets() : int
629629 }.
630630
631631 (*& Type for oracles given to adversary in M_ETCR game &*)
632- module type Oracle_METCR_t = {
633- proc query(x : in_t) : key_t
632+ module type Oracle_METCR = {
633+ include Oraclei_METCR [query]
634634 }.
635635
636636 (*& Default implementation of an oracle for M_ETCR &*)
637- module O_METCR_Default : Oracle_METCRi_t = {
637+ module O_METCR_Default : Oraclei_METCR = {
638638 var ts : (key_t * in_t) list
639639
640640 (* Initialize list of targets (i.e., (key, input) pairs) to the empty list *)
@@ -667,12 +667,12 @@ abstract theory METCR.
667667 }.
668668
669669 (*& Class of adversaries against M_ETCR &*)
670- module type Adv_METCR(O : Oracle_METCR_t ) = {
671- proc find() : int * key_t * in_t { O.query }
670+ module type Adv_METCR(O : Oracle_METCR ) = {
671+ proc find() : int * key_t * in_t
672672 }.
673673
674674 (*& M_ETCR game &*)
675- module M_ETCR (A : Adv_METCR, O : Oracle_METCRi_t ) = {
675+ module M_ETCR (A : Adv_METCR, O : Oraclei_METCR ) = {
676676 proc main() : bool = {
677677 var k, k' : key_t;
678678 var x, x' : in_t;
@@ -1392,14 +1392,19 @@ abstract theory ITSR.
13921392 op h (k : key_t) (x : in_t) : (int * int * int) list = g (f k x).
13931393
13941394 (*& Type for oracles used in ITSR game &*)
1395- module type Oracle_ITSR = {
1395+ module type Oraclei_ITSR = {
13961396 proc init() : unit
13971397 proc query(x : in_t) : key_t
13981398 proc get_targets() : (key_t * in_t) list
13991399 }.
14001400
1401+ (*& Type for oracles given to the adversary in the ITSR game &*)
1402+ module type Oracle_ITSR = {
1403+ include Oraclei_ITSR [query]
1404+ }.
1405+
14011406 (*& Default implementation of an oracle for ITSR &*)
1402- module O_ITSR_Default : Oracle_ITSR = {
1407+ module O_ITSR_Default : Oraclei_ITSR = {
14031408 var ts : (key_t * in_t) list
14041409
14051410 (* Initialize list of targets (i.e., (key, input) pairs) to the empty list *)
@@ -1428,11 +1433,11 @@ abstract theory ITSR.
14281433
14291434 (*& Class of adversaries against ITSR &*)
14301435 module type Adv_ITSR(O : Oracle_ITSR) = {
1431- proc find() : key_t * in_t { O.query }
1436+ proc find() : key_t * in_t
14321437 }.
14331438
14341439 (*& ITSR game &*)
1435- module ITSR(A : Adv_ITSR, O : Oracle_ITSR ) = {
1440+ module ITSR(A : Adv_ITSR, O : Oraclei_ITSR ) = {
14361441 proc main() : bool = {
14371442 var k : key_t;
14381443 var x : in_t;
@@ -1504,23 +1509,23 @@ abstract theory PRF.
15041509 op doutm : { in_t -> out_t distr | forall x, is_lossless (doutm x) } as doutm_ll.
15051510
15061511 (*& Type for oracles used in PRF game &*)
1507- module type Oracle_PRF = {
1512+ module type Oraclei_PRF = {
15081513 proc init(b_init : bool) : unit
15091514 proc query(x : in_t) : out_t
15101515 }.
15111516
15121517 (*& Type for oracles given to the adversary in PRF &*)
1513- module type QOracle_PRF = {
1514- include Oracle_PRF [query]
1518+ module type Oracle_PRF = {
1519+ include Oraclei_PRF [query]
15151520 }.
15161521
15171522 (*& Class of adversaries against PRF &*)
1518- module type Adv_PRF(O : QOracle_PRF ) = {
1523+ module type Adv_PRF(O : Oracle_PRF ) = {
15191524 proc distinguish() : bool
15201525 }.
15211526
15221527 (*& Default implementation of an oracle for PRF &*)
1523- module O_PRF_Default : Oracle_PRF = {
1528+ module O_PRF_Default : Oraclei_PRF = {
15241529 var b : bool
15251530 var k : key_t
15261531 var m : (in_t, out_t) fmap
@@ -1561,7 +1566,7 @@ abstract theory PRF.
15611566 }.
15621567
15631568 (*& PRF game &*)
1564- module PRF(A : Adv_PRF, O : Oracle_PRF ) = {
1569+ module PRF(A : Adv_PRF, O : Oraclei_PRF ) = {
15651570 proc main(b : bool) : bool = {
15661571 var b' : bool;
15671572
0 commit comments