# Error on use small primes numbers to generates the keys

 RSA > All threads > Error on use small primes numbers to... > (Un) Subscribe thread alerts
Subject: Error on use small primes numbers to... Error on use small primes numbers to generate the keys 2 Rafael M. Salvioni 2008-11-05 18:21:17 2008-11-26 22:43:17

 1. Error on use small primes numbers to... Reply Report abuse
Rafael M. Salvioni - 2008-11-05 18:21:18
On use small primes numbers to generate the keys, the decrypt function don´t work correctly and don´t decript the encripted data. Does not occurs with big primes numbers.

Checking the problem, noted that the error should be on the way in which the encrypt function packs the data (\$s argument).

 2. Re: Error on use small primes numbers to... Reply Report abuse
rudie dirkx - 2008-11-26 22:43:12 - In reply to message 1 from Rafael M. Salvioni
You souldnt use such small number anyway! Considered "normal" are numbers of 512-1024 bits = 2^512 which is a lot.
See http://en.wikipedia.org/wiki/RSA for details.