mirleft / ocaml-nocrypto

OCaml cryptographic library
ISC License
111 stars 53 forks source link

Dealing with left-padding using RSA #145

Open kit-ty-kate opened 6 years ago

kit-ty-kate commented 6 years ago

According to the Nocrypto.Rsa.decrypt documentation:

[decrypt ~mask key ciphertext] is the decrypted [ciphertext],
left-padded with [0x00] up to [key] size.

I have several questions on this:

EDIT: Ok just realize how dumb was my second point but maybe there can be something in the doc saying something like [key] size (in octets) to be a bit more precise for noobies like me.