Conversation
42a75a2 to
e29363a
Compare
e29363a to
29c8d1b
Compare
|
I am not opposed to including strict RFC 6979 conformance for verification purposes, as long as it is #ifdef'd out by default (ie, have a STRICT_RFC_6769 macro). I would suggest that you implement bits2octets and bits2int as separate functions; that will make the implementation clearer. |
I can refactor and rebase the RFC6979 code onto the runtime branch within a Please note that We can write a but we must compute |
Hi. After understanding how RFC6979 actually works, I'd like to propose a small change to make the PRNG in
uECC_sign_deterministicconform to RFC6979 for those implemented curves except secp160r1, without messing withbits2octets.In addition to two local buffers of length ~
uECC_BYTESbytes, only one vli_ modular reduction (t <- t mod n), onevli_nativeToBytesfunction call, and onevli_bytesToNativefunction call must need to be added. I think the increase in signing time and code size is negligible.