https://github.com/EasyCrypt/easycrypt
- HEAD
- refs/heads/PKEROM
- refs/heads/PolynomialEncoding
- refs/heads/aprhl
- refs/heads/bdep
- refs/heads/csidh-group-action
- refs/heads/deploy-annotations
- refs/heads/deploy-axiom-clone-subcommand
- refs/heads/deploy-better-dlet
- refs/heads/deploy-better-int-red
- refs/heads/deploy-better-print
- refs/heads/deploy-better-printing
- refs/heads/deploy-binomial-law
- refs/heads/deploy-cdh-rsr
- refs/heads/deploy-chachapoly
- refs/heads/deploy-chernoff
- refs/heads/deploy-clean-pow
- refs/heads/deploy-codepos-fix
- refs/heads/deploy-crt
- refs/heads/deploy-cyclic
- refs/heads/deploy-debug-mark
- refs/heads/deploy-deep-match
- refs/heads/deploy-default-nosmt
- refs/heads/deploy-derandomize
- refs/heads/deploy-dexcepted-sampling
- refs/heads/deploy-djoin-dlist
- refs/heads/deploy-docker
- refs/heads/deploy-dword-is-dlist
- refs/heads/deploy-eager-rp
- refs/heads/deploy-easyPQC
- refs/heads/deploy-eqv-quotient
- refs/heads/deploy-extended-tests
- refs/heads/deploy-feature-127
- refs/heads/deploy-fingroup
- refs/heads/deploy-fix-#154
- refs/heads/deploy-fix-142
- refs/heads/deploy-fix-17390
- refs/heads/deploy-fix-292
- refs/heads/deploy-fmatch
- refs/heads/deploy-for
- refs/heads/deploy-general-prf-distinguisher
- refs/heads/deploy-genhave
- refs/heads/deploy-global-union
- refs/heads/deploy-hybrid0
- refs/heads/deploy-implicit-arguments
- refs/heads/deploy-improve-matching
- refs/heads/deploy-indexed-types
- refs/heads/deploy-instance-adv
- refs/heads/deploy-lamport
- refs/heads/deploy-license
- refs/heads/deploy-log
- refs/heads/deploy-match
- refs/heads/deploy-match-in-stmt
- refs/heads/deploy-match-in=prog-logic-houra
- refs/heads/deploy-mem
- refs/heads/deploy-mem-in-types
- refs/heads/deploy-minr-maxr
- refs/heads/deploy-momemtum
- refs/heads/deploy-multi-apply
- refs/heads/deploy-mutual-inductives
- refs/heads/deploy-named-goals
- refs/heads/deploy-nested-tuples
- refs/heads/deploy-new-cost
- refs/heads/deploy-new-cost2
- refs/heads/deploy-new-rom
- refs/heads/deploy-nosmt-ops
- refs/heads/deploy-oaep
- refs/heads/deploy-oracle-pke
- refs/heads/deploy-packaging
- refs/heads/deploy-pattern-in-rewrite
- refs/heads/deploy-poly-record
- refs/heads/deploy-poly-reduce
- refs/heads/deploy-polymorphic-module
- refs/heads/deploy-ppe-with-full-path
- refs/heads/deploy-prod-fintype
- refs/heads/deploy-project-file
- refs/heads/deploy-quantum
- refs/heads/deploy-quantum-upgrade
- refs/heads/deploy-reduce-decimal
- refs/heads/deploy-reduction
- refs/heads/deploy-refine-birthday
- refs/heads/deploy-remove-cut
- refs/heads/deploy-rewrite-patterns
- refs/heads/deploy-rigid-auto-rewrite
- refs/heads/deploy-rigid-opt
- refs/heads/deploy-ring-ideal
- refs/heads/deploy-ring-with-dfl-inv
- refs/heads/deploy-rmap
- refs/heads/deploy-rom-nobranching
- refs/heads/deploy-search
- refs/heads/deploy-sem
- refs/heads/deploy-sigmaprotocols
- refs/heads/deploy-simpler-rp
- refs/heads/deploy-simpler-xpaths
- refs/heads/deploy-solveeq
- refs/heads/deploy-subst
- refs/heads/deploy-subst-crush
- refs/heads/deploy-tactic-in-rewrite
- refs/heads/deploy-taylor
- refs/heads/deploy-tc
- refs/heads/deploy-theory-matrix
- refs/heads/deploy-theory-matrix-ring
- refs/heads/deploy-theory-monalg
- refs/heads/deploy-theory-symmetric-group
- refs/heads/deploy-tighter-birthday
- refs/heads/deploy-trailing-whitespaces
- refs/heads/deploy-transeq
- refs/heads/deploy-trivial-in-low-api
- refs/heads/deploy-tutorial
- refs/heads/deploy-unit-ro
- refs/heads/deploy-update-readme
- refs/heads/deploy-upto
- refs/heads/deploy-warn-on-noop-change
- refs/heads/deploy-weak-dep-types
- refs/heads/deploy-wf
- refs/heads/deploy-why3-1.4
- refs/heads/deploy-wp-kw
- refs/heads/deploy-xreal
- refs/heads/dilithium
- refs/heads/draft-typeclass
- refs/heads/ellora
- refs/heads/extend-external-ci
- refs/heads/feature-micromega
- refs/heads/fix-360
- refs/heads/fix-457
- refs/heads/flake-nix
- refs/heads/forall-intro-in-proof-term
- refs/heads/fun-tuple
- refs/heads/glob-rec
- refs/heads/inlined-doc
- refs/heads/latex-style
- refs/heads/libpath
- refs/heads/main
- refs/heads/match-no-tcb
- refs/heads/matching-refactoring-1
- refs/heads/mayo
- refs/heads/memory
- refs/heads/mpoly
- refs/heads/opsem
- refs/heads/polydiv
- refs/heads/proc-func-typing
- refs/heads/r2022.04-01
- refs/heads/remove-pinned-provers
- refs/heads/rewrite-in-stmt-assign-2
- refs/heads/rw-pattern-explicit-eq
- refs/heads/simple-projects
- refs/heads/sub-patterns
- refs/heads/theory_finite_field
- refs/tags/ccs14-sfe
- refs/tags/doc
- refs/tags/evoting
- refs/tags/r2023.09
- refs/tags/r2024.01
Raw File
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.Processing "take a new snapshot" request ...
Permalinks
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
Tip revision: d3179246f8365b8ee7b73167a12e954f2bdfeb91 authored by Benjamin Gregoire on 14 December 2022, 09:56:45 UTC
Merge branch 'main' into deploy-quantum
Merge branch 'main' into deploy-quantum
Tip revision: d317924
CCA1.eca
require import Bool Core.
require (*--*) DBool NewSKE.
clone include NewSKE.
module type CCA1 = {
proc enc(p: plain): cipher option
proc dec(c: cipher): plain option
}.
module type Adv_CCA1 (O : CCA1) = {
proc choose(): plain * plain
proc guess(c: cipher): bool { O.enc }
}.
module IND_CCA1 ( S : SKE, A : Adv_CCA1) = {
module O = Wrap(S)
module A = A(O)
proc main(): bool = {
var b, b', c, p0, p1, p;
O.init();
(p0,p1) <@ A.choose();
b <$ {0,1};
p <- b ? p1 : p0; (* FIXME: need to check whether plaintexts are both valid or both invalid *)
c <@ O.enc(p);
b' <@ A.guess(oget c);
return b = b';
}
}.