Repository navigation
Address issues from AI security review - #4
philipr-za wants to merge 3 commits into
Conversation
4582b91 to
b69c9de
Compare
|
I don't like adding the Just hand-roll constant time comparison ops like we do in rust-secp256k1. |
thanks for the review @apoelstra Took a crack at that. Though the AI notes that the less-than comparitors are a bit trickier to do constant time than equals. |
|
I'd just copy the algorithm from https://github.com/dalek-cryptography/subtle/blob/main/src/lib.rs#L879-L908 and it in its own file that's clearly labeled as being BSD-copyrighted to hdv and isis. |
f8d35dc to
8236b0f
Compare
Alright, seeing as I was copying the GT/LT stuff I grabbed their equals impl too |
|
Can you rebase/squash so that there is no commit adding the |
Manually import subtles constant time eq and gt/lt and used in padding impl
8236b0f to
2e2aee4
Compare
An AI security review surfaced some potential footguns and vulnerabilities in the repo, mostly in the padding implementation.
This PR addresses those issues.