Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[security] Provide RTL coding style guidance for security critical applications #14

Open
msfschaffner opened this issue Jan 2, 2020 · 3 comments

Comments

@msfschaffner
Copy link
Contributor

We should add a separate RTL style guide for security related applications. The actual contents of that style guide still need to be fleshed out, but some aspects that should be covered have surfaced in #12 (e.g., guidance on FSM coding and placing of security-related assertions).

@msfschaffner msfschaffner changed the title [security] Provide RTL coding style guidance in case of security critical applications [security] Provide RTL coding style guidance for security critical applications Jan 2, 2020
@cdgori
Copy link

cdgori commented Apr 6, 2020

PR1877 triggered something in me that needs to be incorporated here:

We might need to incorporate some "blanking" muxes to prevent partial intermediate values from propagating to arithmetic functions/operators. Especially if we have two arithmetic operators in sequence in a single clock cycle - e.g. y = g(f(x)), you really don't want partial f(x) fed to g() so you need to have some "done" or "valid" indicator from f(x) to allow g() to process the output of f(x). Pipeline registers serve the same function here, but sometimes you are trying to minimize latency.

For public-key crypto (bignum comes to mind), I think we also are concerned about glitching where part way through a clock cycle some sub-words/bytes/nibbles have been computed but others are not yet ready, and a clock glitch could "jump ahead" in the algorithm - I don't have a concrete example here though and will have to discuss with @felixmiller / others to see if there is a real concern. (And what techniques we should use to protect.)

@tjaychen
Copy link

should we link the WIP doc to this issue?

@tjaychen tjaychen removed their assignment Sep 24, 2020
@sjgitty
Copy link
Contributor

sjgitty commented Sep 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants