From 8c4e337ab7913ad08ba7c606789eb6bd48f3dc85 Mon Sep 17 00:00:00 2001 From: Praneeth Sarode Date: Sun, 21 Sep 2025 04:57:24 +0530 Subject: [PATCH] pki: define RSA_DEFAULT_KEY_SIZE Define a new constant for the default RSA key size for consistency. Signed-off-by: Praneeth Sarode Reviewed-by: Jakub Jelen --- include/libssh/pki.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 39a5a16d..e8c80cdf 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -45,7 +45,9 @@ #define MAX_PUBKEY_SIZE 0x100000 /* 1M */ #define MAX_PRIVKEY_SIZE 0x400000 /* 4M */ + #define RSA_MIN_KEY_SIZE 768 +#define RSA_DEFAULT_KEY_SIZE 3072 #define SSH_KEY_FLAG_EMPTY 0x0 #define SSH_KEY_FLAG_PUBLIC 0x0001