***************************************************
issue:
RSA key with small key length throws a wrong error message: "invalid key
bits"  (???)

solution:
replace the Error constant

comment:
256 could be replaced by 384, as RSA-768 is broken

patch:
--- openssl-1.0.1-beta1/crypto/rsa/rsa_pmeth.c  2012-01-02
19:16:39.000000000 +0100
+++ openssl-1.0.1-beta1.patch/crypto/rsa/rsa_pmeth.c    2012-01-06
09:03:27.388234800 +0100
@@ -512,5 +512,5 @@
                if (p1 < 256)
                        {
-                       RSAerr(RSA_F_PKEY_RSA_CTRL, RSA_R_INVALID_KEYBITS);
+                       RSAerr(RSA_F_PKEY_RSA_CTRL, RSA_R_KEY_SIZE_TOO_SMALL);
                        return -2;
                        }



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to