Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions lean/VerifiedGarbage/Artifacts/EcdsaP256/PPC64LE.lean
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ module
public import VerifiedGarbage.TCB.PPC64LE.Target
public import VerifiedGarbage.Proof.Weierstrass.Law
public import VerifiedGarbage.Impl.Ecdsa.P256.PPC64LE
public import VerifiedGarbage.Proof.Ecdsa.PPC64LE.Verified
public import VerifiedGarbage.Proof.Framework.Registration
public import VerifiedGarbage.Spec.Ecdsa.P256
public import VerifiedGarbage.Impl.Ecdsa.Verify.P256.PPC64LE
public import VerifiedGarbage.Proof.Ecdsa.Verify.PPC64LE.Verified
public import VerifiedGarbage.Spec.Ecdsa.Verify.P256
public import VerifiedGarbage.Impl.Ecdsa.PPC64LE.VerifyHash
public import VerifiedGarbage.TCB.PPC64LE.Print
import VerifiedGarbage.Proof.Ecdsa.PPC64LE.Lit
import VerifiedGarbage.Proof.Ecdsa.Verify.PPC64LE.Lit
public import VerifiedGarbage.Proof.P256.PPC64LE.Law

Expand Down
5 changes: 3 additions & 2 deletions lean/VerifiedGarbage/Artifacts/EcdsaP256Rfc6979/PPC64LE.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public import VerifiedGarbage.Proof.Framework.Registration
public import VerifiedGarbage.Proof.HmacTable.PPC64LE.Vars
public import VerifiedGarbage.TCB.PPC64LE.Print
public import VerifiedGarbage.Proof.P256.PPC64LE.Law
import VerifiedGarbage.Proof.Ecdsa.PPC64LE.P256CombLit

/-! # Deterministic ECDSA (RFC 6979) over P-256 on PPC64LE, with HMAC as a table -/

Expand All @@ -16,10 +17,10 @@ namespace VG.Artifacts.EcdsaP256Rfc6979.PPC64LE

open VG.Proof.P256.PPC64LE (hasLaw)
open VG.Proof.Ecdsa.Rfc6979.PPC64LE (signCodeT stackT OK p256R p256T_verified)
open VG.Proof.HmacTable.PPC64LE (vars tables)
open VG.Proof.HmacTable.PPC64LE (vars tables names)

def artifacts : List Artifact :=
if hv : OK vars then [
if hv : OK vars ∧ "VG_P256_COMB" ∉ names vars then [
Spec.Ecdsa.Rfc6979.Curves.p256SignApi.artifact PPC64LE.target {
tables := [("hmac", tables vars)]
code := signCodeT (p256R hasLaw.law) Spec.Ecdsa.Rfc6979.Curves.p256.tries vars
Expand Down
3 changes: 0 additions & 3 deletions lean/VerifiedGarbage/Impl/Ecdsa/P256/PPC64LE.lean
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ open VG.PPC64LE
/-- P-256 as the code has it. -/
def p256 : Cfg := ⟨4, Spec.P256.curve, Impl.Weierstrass.Mont.p256p, Impl.Weierstrass.Mont.p256n, some Impl.Weierstrass.Mul.p256⟩

/-- `vg_ecdsa_p256_sign`. -/
def signP256 : Prog isa := p256.sign

/-- `vg_p256_mul`. -/
def mulP256 : Prog isa := p256.mulFn

Expand Down
9 changes: 8 additions & 1 deletion lean/VerifiedGarbage/Impl/Ecdsa/P256/PPC64LEComb.lean
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public import VerifiedGarbage.Impl.EcKey.PPC64LE

The comb of `Impl/Weierstrass/PPC64LE/TComb.lean` with P-256's tables
(`Impl/P256/CombTable7.lean`, the other targets'), and public keys with it in
place of the ladder for `[d]G`. -/
place of the ladder for `[d]G`, and signatures with it for `[k]G`. -/

@[expose] public section

Expand Down Expand Up @@ -43,3 +43,10 @@ def publicKeyP256Comb : Prog VG.PPC64LE.isa :=
Cfg.publicKeyWith Impl.Ecdsa.PPC64LE.p256 Weierstrass.PPC64LE.mulGeneratorP256

end VG.Impl.EcKey.PPC64LE

namespace VG.Impl.Ecdsa.PPC64LE

/-- `vg_ecdsa_p256_sign`, with `[k]G` by the comb. -/
def signP256Comb : Prog VG.PPC64LE.isa := p256.signWith Weierstrass.PPC64LE.mulGeneratorP256

end VG.Impl.Ecdsa.PPC64LE
18 changes: 3 additions & 15 deletions lean/VerifiedGarbage/Proof/EcKey/PPC64LE/P256Comb.lean
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ public import VerifiedGarbage.Proof.Framework.Contract
public import VerifiedGarbage.TCB.PPC64LE.Target
public import VerifiedGarbage.Proof.EcKey.PPC64LE.Main
import VerifiedGarbage.Proof.Ecdsa.PPC64LE.P256
import VerifiedGarbage.Proof.P256.PPC64LE.Comb
public import VerifiedGarbage.Proof.P256.PPC64LE.Comb
import VerifiedGarbage.Proof.EcKey.PPC64LE.P256CombLit
public import VerifiedGarbage.Proof.Framework.ConstMem
import VerifiedGarbage.Proof.Framework.PPC64LE.Syms
import VerifiedGarbage.Proof.Framework.Offset
import VerifiedGarbage.Proof.Framework.AddrArith
Expand All @@ -30,7 +29,6 @@ meta import VerifiedGarbage.Proof.EcKey.PPC64LE.Main
meta import VerifiedGarbage.Proof.Ecdsa.PPC64LE.P256
meta import VerifiedGarbage.Proof.P256.PPC64LE.Comb
meta import VerifiedGarbage.Proof.EcKey.PPC64LE.P256CombLit
meta import VerifiedGarbage.Proof.Framework.ConstMem
meta import VerifiedGarbage.Proof.Framework.PPC64LE.Syms
meta import VerifiedGarbage.Proof.Framework.Offset
meta import VerifiedGarbage.Proof.Framework.AddrArith
Expand Down Expand Up @@ -139,23 +137,13 @@ theorem combPk_ct : ConstantTime isa pkPC.pre pkPC.pub Impl.EcKey.PPC64LE.public

theorem combConsts_eq : p256CombConsts = [(p256Comb.tsym, p256CombWords)] := rfl

/-- The memory of the witness with the table: the table at `0x100000`
(irreducible: unfolding it in a definitional check would evaluate the
table). -/
@[irreducible] def combSatMem : Mem := constMem 0x100000 p256CombWords

theorem combSatMem_held : ∀ i < p256CombWords.length,
combSatMem.readW (0x100000 + BitVec.ofNat 64 (8 * i)) 64 = p256CombWords.getD i 0 := by
unfold combSatMem
exact constMem_held _ _ (by rw [Proof.P256.PPC64LE.comb_words_length]; omega)

/-- A state satisfying the precondition with the table. -/
def combSatC : State :=
{ satState with mem := combSatMem, rd := [⟨0x2000, 32⟩, ⟨0x100000, 151552⟩], syms := fun _ => 0x100000 }
{ satState with mem := Proof.P256.PPC64LE.combSatMem, rd := [⟨0x2000, 32⟩, ⟨0x100000, 151552⟩], syms := fun _ => 0x100000 }

theorem combPk_sat : (Spec.EcKey.P256.inst.publicKeyContract (abi.withConsts p256CombConsts)).pre combSatC := by
have hl := Proof.P256.PPC64LE.comb_words_length
have held := combSatMem_held
have held := Proof.P256.PPC64LE.combSatMem_held
rw [combConsts_eq]
generalize p256CombWords = W at hl held ⊢
generalize e : combSatC = s
Expand Down
23 changes: 0 additions & 23 deletions lean/VerifiedGarbage/Proof/Ecdsa/PPC64LE/Lit.lean

This file was deleted.

26 changes: 25 additions & 1 deletion lean/VerifiedGarbage/Proof/Ecdsa/PPC64LE/Main.lean
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import VerifiedGarbage.Proof.Framework.PPC64LE.Exec
import VerifiedGarbage.Proof.Framework.Offset
import VerifiedGarbage.Proof.Framework.AddrArith
public import VerifiedGarbage.Proof.Ecdsa.PPC64LE.Middle
import VerifiedGarbage.Proof.Ecdsa.PPC64LE.LadPow
public import VerifiedGarbage.Proof.Ecdsa.PPC64LE.LadPow
import VerifiedGarbage.Proof.Framework.PPC64LE.Syms
public import VerifiedGarbage.Proof.Weierstrass.MulContract

/-!
Expand Down Expand Up @@ -281,6 +282,29 @@ theorem sign_eq (c : Cfg) : c.sign = .seq (.block (c.setupWith Args.sign))
(.seq (c.qMul GX GY) (.seq c.invP (.seq c.middle
(.seq c.invN c.scalar))))))) := rfl

theorem signWith_eq (c : Cfg) (generator : Prog isa) : c.signWith generator = .seq (.block (c.setupWith Args.sign))
(.seq (bits (c.sl K) (bitsAt c.n 0) (8 * c.n))
(.seq (bits (c.sl EXPP) (bitsAt c.n 1) (8 * c.n)) (.seq (bits (c.sl EXPN) (bitsAt c.n 2) (8 * c.n))
(.seq generator (.seq c.invP (.seq c.middle
(.seq c.invN c.scalar))))))) := rfl

/-- `vg_ecdsa_<curve>_sign` with `R = [k]G` by any `generator` meeting
`GeneratorPost` after the setup and the tables computes the specification's
signature, restores the callee-saved registers and `lr`, and changes only
the working space and `out`. -/
theorem signWith_ok (hc : CfgOk c) (h3 : 3 ≤ c.n) (hC : Law c.C) {s₀ : State} {extra : List Region}
(hp : Pre c s₀ extra) {generator : Prog isa}
(hMul : ∀ s, St₁ c .sign s₀ (s₀.gpr .r7) (BitVec.allOnes 64) s → s.syms = s₀.syms →
WP isa generator s (GeneratorPost c (s₀.gpr .r7) (kv c .sign s₀) (G c.C) s)) :
WP isa (c.signWith generator) s₀ fun s' => SignKeep c s₀ s' ∧ SignPost c s₀ s' := by
have setupRun := stage₁ hc hp.setup (A := .sign) (rest := .block [])
(Q := fun s => St₁ c .sign s₀ (s₀.gpr .r7) (BitVec.allOnes 64) s) (fun _ S => WP.block_nil S)
have run := VG.PPC64LE.WP.mono_syms setupRun fun s₁ S₁ sy => stage₂With hc h3 S₁ (hMul s₁ S₁ sy)
(rest := .seq c.middle (.seq c.invN c.scalar)) fun s₂ S₂ =>
stage₃ hc S₂ fun s₃ S₃ => stage₄ hc hC hp S₃
rw [signWith_eq]
simpa only [WP.seq_iff (M := isa), WP.block_nil_iff (M := isa)] using run

/-- `vg_ecdsa_<curve>_sign` computes the specification's signature, restores
the callee-saved registers and `lr`, and changes only the working space and
`out`. -/
Expand Down
179 changes: 179 additions & 0 deletions lean/VerifiedGarbage/Proof/Ecdsa/PPC64LE/P256Comb.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
module

public import VerifiedGarbage.Proof.Ecdsa.PPC64LE.Main
public import VerifiedGarbage.Proof.Ecdsa.PPC64LE.Contract
public import VerifiedGarbage.Impl.Ecdsa.P256.PPC64LEComb
public import VerifiedGarbage.Proof.Framework.PPC64LE.Taint
public import VerifiedGarbage.Proof.Framework.PPC64LE.TaintSym
public import VerifiedGarbage.Proof.Framework.PPC64LE.Consts
public import VerifiedGarbage.Spec.Ecdsa.P256
public import VerifiedGarbage.Proof.Ecdsa.Contract
public import VerifiedGarbage.Proof.Weierstrass.Law
public import VerifiedGarbage.TCB.PPC64LE.Target
import VerifiedGarbage.Proof.Ecdsa.PPC64LE.P256CombLit
import VerifiedGarbage.Proof.Ecdsa.PPC64LE.P256
public import VerifiedGarbage.Proof.P256.PPC64LE.Comb
public import VerifiedGarbage.Proof.Framework.Contract
meta import VerifiedGarbage.Proof.Ecdsa.PPC64LE.Main
meta import VerifiedGarbage.Proof.Ecdsa.PPC64LE.Contract
meta import VerifiedGarbage.Impl.Ecdsa.P256.PPC64LEComb
meta import VerifiedGarbage.Proof.Framework.PPC64LE.Taint
meta import VerifiedGarbage.Proof.Framework.PPC64LE.TaintSym
meta import VerifiedGarbage.Proof.Framework.PPC64LE.Consts
meta import VerifiedGarbage.Spec.Ecdsa.P256
meta import VerifiedGarbage.Proof.Ecdsa.Contract
meta import VerifiedGarbage.Proof.Weierstrass.Law
meta import VerifiedGarbage.TCB.PPC64LE.Target
meta import VerifiedGarbage.Proof.Ecdsa.PPC64LE.P256CombLit
meta import VerifiedGarbage.Proof.Ecdsa.PPC64LE.P256
meta import VerifiedGarbage.Proof.P256.PPC64LE.Comb
meta import VerifiedGarbage.Proof.Framework.Contract

/-!
# ECDSA signatures over P-256 by the comb on PPC64LE: `Verified`

`vg_ecdsa_p256_sign` with `[k]G` by the seven-bit comb, whose table is a
read-only constant (`Abi.withConsts`): `combSign_ok`, from `signWith_ok` and
the comb as the generator; `combSign_ct`, by `taint_decide` with the
table's address public; and the contract with the table.
-/

@[expose] public section

namespace VG.Proof.Ecdsa.PPC64LE

open VG VG.PPC64LE VG.Impl.Ecdsa.PPC64LE VG.Impl.Weierstrass.PPC64LE Spec.Weierstrass
open VG.Proof.Weierstrass.PPC64LE.TComb

theorem pre_of {s : State} (h : signPPC.pre s) : Pre p256 s := by
obtain ⟨h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11⟩ := h
exact ⟨h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11⟩

theorem post_of {s s' : State} (h : SignPost p256 s s') : signPPC.post s s' := by
unfold SignPost at h
show match sig s.mem (s.gpr .r4) (s.gpr .r5) (s.gpr .r6) with
| some rs => s'.gpr .r3 = 1 ∧ Spec.Ecdsa.bytesAt s'.mem (s.gpr .r3) 64 = Spec.Ecdsa.encode Spec.P256.curve rs
| none => s'.gpr .r3 = 0 ∧ Spec.Ecdsa.bytesAt s'.mem (s.gpr .r3) 64 = List.replicate 64 0
revert h
generalize hq : sig s.mem (s.gpr .r4) (s.gpr .r5) (s.gpr .r6) = q
rw [show Spec.Ecdsa.signWith p256.C (ofBytes (Spec.Ecdsa.bytesAt s.mem (s.gpr .r4) p256.C.len))
(Spec.Ecdsa.hashToInt p256.C (Spec.Ecdsa.bytesAt s.mem (s.gpr .r5) p256.C.len))
(ofBytes (Spec.Ecdsa.bytesAt s.mem (s.gpr .r6) p256.C.len)) = sig s.mem (s.gpr .r4) (s.gpr .r5) (s.gpr .r6)
from rfl, hq]
rcases q with _ | rs <;> exact id

/-- A state satisfying the precondition (without the table). -/
def satState : State where
gpr r := match r with
| .r3 => 0x1000 | .r4 => 0x2000 | .r5 => 0x3000 | .r6 => 0x4000 | .r7 => 0x8000 | _ => 0
lr := 0
sp := 0x20000
mem _ := 0
rd := [⟨0x2000, 32⟩, ⟨0x3000, 32⟩, ⟨0x4000, 32⟩]
wr := [⟨0x1000, 64⟩, ⟨0x8000, 8192⟩]

/-- The contract as the proof states it implies the signature's (without the table). -/
theorem signPPC_implies : signPPC.Implies (Proof.Ecdsa.Instance.signContract Spec.Ecdsa.P256.inst PPC64LE.abi) :=
{ pre := by
sig_implies_pre [Spec.Ecdsa.P256.inst, Proof.Ecdsa.Instance.signContract, Proof.Ecdsa.Instance.signSig,
Spec.P256.curve, Spec.Ecdsa.scratchWords, signPPC, sig, PPC64LE.abi, PPC64LE.argRegs]
post := by
intro s s' _ h
sig_post [Spec.Ecdsa.P256.inst, Proof.Ecdsa.Instance.signContract, Proof.Ecdsa.Instance.signSig,
Spec.P256.curve, Spec.Ecdsa.scratchWords, signPPC, sig, PPC64LE.abi, PPC64LE.argRegs]
simp only [signPPC, sig, Spec.P256.curve] at h
revert h
generalize Spec.Ecdsa.signWith _ _ _ _ = q
rcases q with _ | rs <;> exact fun h => ⟨by rw [h.1]; rfl, h.2⟩
pub := by
sig_implies_pub [Spec.Ecdsa.P256.inst, Proof.Ecdsa.Instance.signContract, Proof.Ecdsa.Instance.signSig,
Spec.P256.curve, Spec.Ecdsa.scratchWords, signPPC, sig, PPC64LE.abi, PPC64LE.argRegs]
sat := by
sig_implies_sat [Spec.Ecdsa.P256.inst, Proof.Ecdsa.Instance.signContract, Proof.Ecdsa.Instance.signSig,
Spec.P256.curve, Spec.Ecdsa.scratchWords, signPPC, sig, PPC64LE.abi, PPC64LE.argRegs]
[satState] using satState }


/-- The signature's contract with the table, as the proof states it. -/
def signPC : Contract isa where
pre s := signPPC.pre (stripConsts p256CombConsts s) ∧ ConstsOk p256CombConsts 0 s
post := signPPC.post
pub s₁ s₂ := signPPC.pub s₁ s₂ ∧ s₁.syms p256Comb.tsym = s₂.syms p256Comb.tsym

theorem combSign_ok (hL : Weierstrass.Law Spec.P256.curve) (s : State) (hs : signPC.pre s) :
∃ t s', Exec isa signP256Comb s t s' ∧ abiPreserved s s' ∧ signPC.post s s' := by
obtain ⟨hp, hk⟩ := hs
have p := pre_of hp
have hpre : Pre p256 s (constRegs p256CombConsts s) := by
refine ⟨?_, p.wr, p.out_sc, p.d_sc, p.digest_sc, p.k_sc, p.out_fit, p.d_fit, p.digest_fit, p.k_fit, p.sc_fit⟩
rw [← List.take_append_drop (s.rd.length - p256CombConsts.length) s.rd, hk.1]
exact congrArg (fun rs => rs ++ constRegs p256CombConsts s) p.rd
have member : (p256Comb.tsym, p256CombWords) ∈ p256CombConsts := List.mem_singleton_self _
have ht : TableMem s (s.syms p256Comb.tsym) p256CombWords :=
⟨hk.fit member, ⟨_, List.mem_append_left _ (hk.mem_rd member), Region.contains_self _ _⟩,
fun i hi => hk.readW member hi⟩
have hd : Region.Disjoint ⟨s.syms p256Comb.tsym, 8 * p256CombWords.length⟩ ⟨s.gpr .r7, 8192⟩ :=
(hk.2.2.1 _ (List.mem_map_of_mem (f := fun c => (⟨s.syms c.1, 8 * c.2.length⟩ : Region)) member)).2.1 _
(by rw [hpre.wr]; simp)
obtain ⟨t, s', he, K, hpost⟩ := signWith_ok p256_ok (by decide) hL hpre fun s₁ S₁ sy =>
Proof.P256.PPC64LE.comb_generator_ok hL S₁
(ht.unch (by rw [S₁.rk.rd, S₁.rk.wr]) S₁.whole (fun w hw => by
rw [List.mem_singleton] at hw; subst hw; decide) hd) (by rw [sy]) hd
exact ⟨t, s', he, ⟨K.saved, K.sp, K.lr⟩, post_of hpost⟩

theorem combSign_ct : ConstantTime isa signPC.pre signPC.pub signP256Comb :=
VG.Taint.constantTime (A := taintSym [p256Comb.tsym]) (Taint.ofRegs [.r3, .r4, .r5, .r6, .r7])
(fun _ _ _ _ ⟨⟨hsp, h3, h4, h5, h6, h7⟩, sy⟩ => ⟨⟨hsp, fun r hr => by
simp only [Taint.mem_ofRegs, List.mem_cons, List.not_mem_nil, or_false] at hr
rcases hr with rfl | rfl | rfl | rfl | rfl
· exact h3
· exact h4
· exact h5
· exact h6
· exact h7⟩, fun n hn => by simp only [List.mem_singleton] at hn; subst hn; exact sy⟩)
(by taint_decide)

theorem combConsts_eq : p256CombConsts = [(p256Comb.tsym, p256CombWords)] := rfl

/-- A state satisfying the precondition with the table. -/
def combSatC : State :=
{ satState with
mem := Proof.P256.PPC64LE.combSatMem
rd := [⟨0x2000, 32⟩, ⟨0x3000, 32⟩, ⟨0x4000, 32⟩, ⟨0x100000, 151552⟩]
syms := fun _ => 0x100000 }

theorem combSign_sat :
(Proof.Ecdsa.Instance.signContract Spec.Ecdsa.P256.inst (abi.withConsts p256CombConsts)).pre combSatC := by
have hl := Proof.P256.PPC64LE.comb_words_length
have held := Proof.P256.PPC64LE.combSatMem_held
rw [combConsts_eq]
generalize p256CombWords = W at hl held ⊢
generalize e : combSatC = s
sig_pre [Spec.Ecdsa.P256.inst, Proof.Ecdsa.Instance.signContract, Proof.Ecdsa.Instance.signSig,
Spec.P256.curve, Spec.Ecdsa.scratchWords, abi, argRegs, Abi.withConsts, Abi.constRegions, Abi.constsHeld,
stackBelow]
subst e
rw [hl]
refine ⟨rfl, fun i hi => held i (by rw [hl]; exact hi), by decide, fun r hr => ?_, by decide, ?_⟩
· change r ∈ [⟨0x1000, 64⟩, ⟨0x8000, 8192⟩] at hr
simp only [List.mem_cons, List.not_mem_nil, or_false] at hr
rcases hr with rfl | rfl <;> exact Region.disjoint_of_sep (by decide)
· repeat' apply And.intro
all_goals first | exact Region.disjoint_of_sep (by decide) | decide | rfl

theorem signPC_implies :
signPC.Implies (Proof.Ecdsa.Instance.signContract Spec.Ecdsa.P256.inst (abi.withConsts p256CombConsts)) :=
{ pre := fun _ hs => ⟨signPPC_implies.pre _ (pre_consts.mp hs).1, (pre_consts.mp hs).2⟩
post := fun s s' hs hp => post_consts.mpr (signPPC_implies.post (stripConsts p256CombConsts s) s'
(pre_consts.mp hs).1 hp)
pub := fun s₁ s₂ h₁ h₂ hp => ⟨signPPC_implies.pub (stripConsts p256CombConsts s₁)
(stripConsts p256CombConsts s₂) (pre_consts.mp h₁).1 (pre_consts.mp h₂).1 (pub_consts.mp hp).1,
(pub_consts.mp hp).2 _ List.mem_cons_self⟩
sat := ⟨combSatC, combSign_sat⟩ }

theorem combSign_verified (hL : Weierstrass.Law Spec.P256.curve) :
Verified PPC64LE.target signP256Comb
(Proof.Ecdsa.Instance.signContract Spec.Ecdsa.P256.inst (PPC64LE.abi.withConsts p256CombConsts)) :=
Verified.of_correct (combSign_ok hL) combSign_ct signPC_implies

end VG.Proof.Ecdsa.PPC64LE
24 changes: 24 additions & 0 deletions lean/VerifiedGarbage/Proof/Ecdsa/PPC64LE/P256CombLit.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module

public import VerifiedGarbage.Impl.Ecdsa.P256.PPC64LEComb
public import VerifiedGarbage.Proof.Framework.PPC64LE.Lit
import VerifiedGarbage.Proof.Framework.Lit
meta import VerifiedGarbage.Impl.Ecdsa.P256.PPC64LEComb
meta import VerifiedGarbage.Proof.Framework.PPC64LE.Lit
meta import VerifiedGarbage.Proof.Framework.Lit

/-!
# ECDSA signatures over P-256 by the comb on PPC64LE: the code as a literal

`vg_ecdsa_p256_sign` with `[k]G` by the comb as a literal
(`materialize_code`, `Proof/Framework/Lit.lean`), which its constant time
and its stack depth evaluate.
-/

@[expose] public section

namespace VG

materialize_code Impl.Ecdsa.PPC64LE.signP256Comb

end VG
Loading
Loading