Skip to content

Commit

Permalink
FE310 leakage comment
Browse files Browse the repository at this point in the history
Co-authored-by: Andres Erbsen <[email protected]>
  • Loading branch information
OwenConoly and andres-erbsen authored Dec 19, 2024
1 parent 4e8bb1d commit 0252627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bedrock2/src/bedrock2/FE310CSemantics.v
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Section WithParameters.
Definition isMMIOAligned (n : nat) (addr : word) :=
n = 4%nat /\ word.unsigned addr mod 4 = 0.

(* FE310 is a simple enough processor that these assumptions are likely to hold. There is no official documentation of whether multiply always takes the maximum time or not, but both https://eprint.iacr.org/2019/794.pdf and https://pure.tue.nl/ws/portalfiles/portal/169647601/Berg_S._ES_CSE.pdf quote a fixed number of cycles for FE310 multiplication in the context of cryptography. *)
Global Instance ext_spec: LeakageSemantics.ExtSpec :=
fun (t : trace) (mGive : mem) a (args: list word) (post: mem -> list word -> list word -> Prop) =>
if String.eqb "MMIOWRITE" a then
Expand Down

0 comments on commit 0252627

Please sign in to comment.