Skip to content

Commit 5b097bd

Browse files
committed
Change key size and max plain length
1 parent 0c3a9f7 commit 5b097bd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ssl/tls1.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,13 @@ extern "C" {
7575
#define CLR_SSL_FLAG(A) (ssl->flag &= ~A)
7676
#define IS_SET_SSL_FLAG(A) (ssl->flag & A)
7777

78-
#define MAX_KEY_BYTE_SIZE 512 /* for a 4096 bit key */
79-
#define RT_MAX_PLAIN_LENGTH 16384
78+
//#define MAX_KEY_BYTE_SIZE 512 /* for a 4096 bit key */
79+
//#define RT_MAX_PLAIN_LENGTH 16384
80+
// #define RT_EXTRA 1024
81+
// #define BM_RECORD_OFFSET 5
82+
83+
#define MAX_KEY_BYTE_SIZE 256 /* for a 2048 bit key */
84+
#define RT_MAX_PLAIN_LENGTH 1024
8085
#define RT_EXTRA 1024
8186
#define BM_RECORD_OFFSET 5
8287

0 commit comments

Comments
 (0)