ChaCha20 (without Poly1305) block counter

2019-04-17 Thread Jerry Lui
Hi, I am trying to use ChaCha20 (without Poly1305) >From RFC 7539: One of the inputs to ChaCha20 is: "A 32-bit initial counter." However I cannot find the function to set this. where should I input this? Thanks, Jerry

Question about RSA CRT private key operation

2019-03-28 Thread Jerry Lui
Hi, While implementing my application with RSA, I came across this paper: https://people.redhat.com/~fweimer/rsa-crt-leaks.pdf When I implement RSA private key operation with CRT, should I do an extra verify operation suggested in the paper (section 1.3)? or is this handled by OpenSSL already? (M