[PATCH] D155690: [RISCV] Mask instructions in Zkt as constant-time

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 09:10:23 PDT 2023


craig.topper added a comment.

In order for this to work, the loop over the buffer to encrypt has to be a separate piece of code? Since the branch instructions aren't constant time.

This patch needs a test that shows the warning fires for a non-constant time instruction.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155690/new/

https://reviews.llvm.org/D155690



More information about the llvm-commits mailing list