security: forbid RSA keys shorter than 2048 bits
Change-Id: Ib4a90c32d8d6065093b01ab3d28e119a232ca638
diff --git a/src/security/key-params.cpp b/src/security/key-params.cpp
index e18ae67..59bf26d 100644
--- a/src/security/key-params.cpp
+++ b/src/security/key-params.cpp
@@ -23,7 +23,7 @@
namespace ndn {
-static const uint32_t MIN_RSA_KEY_SIZE = 1024;
+static const uint32_t MIN_RSA_KEY_SIZE = 2048;
static const uint32_t DEFAULT_RSA_KEY_SIZE = 2048;
static const uint32_t EC_KEY_SIZES[] = {224, 256, 384, 521};
static const uint32_t DEFAULT_EC_KEY_SIZE = 256;