Encrypt: set default RSA key size to 1024 everywhere, using the RSA_KEY_SIZE macro

This commit also fixes the problem described in #31, which was caused by the test key generated in RsaCheck() being too small for newer OpenSSL versions.
This commit is contained in:
Davide Beatrici committed 2018-06-09 19:56:51 +02:00
1 parent 1e8cf1dc5d
commit 1fad008e1a
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ void RAND_Free_For_SoftEther();
#define DES_IV_SIZE 8 // DES IV size
#define DES_BLOCK_SIZE 8 // DES block size
#define DES3_KEY_SIZE (8 * 3) // 3DES key size
#define RSA_KEY_SIZE 128 // RSA key size
#define RSA_KEY_SIZE 1024 // RSA key size
#define DH_KEY_SIZE 128 // DH key size
#define RSA_MIN_SIGN_HASH_SIZE (15 + SHA1_HASH_SIZE) // Minimum RSA hash size
#define RSA_SIGN_HASH_SIZE (RSA_MIN_SIGN_HASH_SIZE) // RSA hash size