pornin / CTTK

Constant-Time Toolkit
MIT License
294 stars 14 forks source link

Added cti_bit_length #5

Open waywardgeek opened 6 years ago

waywardgeek commented 6 years ago

Julien ran into trouble when he needed to encode a big integer as little-endian bytes, since he did not know in advance how big to make the byte buffer. I added cti_bit_length so he could allocate the buffer before doing the conversion.

waywardgeek commented 6 years ago

I have to fix this... will upload new version shortly.

waywardgeek commented 6 years ago

OK, now it LGTM.

pornin commented 6 years ago

I have three comments on that one:

I'll fix these in a few days.

waywardgeek commented 6 years ago

Thanks!