There is a maximum size of data to encrypt using RSA?

Brad Hards bradh at frogmouth.net
Fri Aug 3 12:54:42 CEST 2012


On Friday 03 August 2012 00:11:27 Tiago Queiroz wrote:
> I am trying to encrypt a block of 1249 bytes with RSA, but when I use
> gcry_sexp_build to build a s-expression to be encrypted the function
> return an empty s-expression.
Please don't try to do very low level crypto (like this) without detailed 
understanding. Its very easy to make a mistake that completely destroys the 
security of the system and not know.

A higher level implementation (e.g. PGP/GnuPG) would be a much better 
approach.

Brad



More information about the Gcrypt-devel mailing list