Browse Source

increase signature size

master
Michael Preisach 4 years ago
parent
commit
f8baa1916f
  1. 6
      common.h

6
common.h

@ -14,13 +14,13 @@
#define VERIFIERPORT 6592 #define VERIFIERPORT 6592
#define MAX_CLIENTS 10 #define MAX_CLIENTS 10
#define MAX_BSNSIZE 128
#define NONCE_SIZE 64
#define MAX_MSGSIZE 15000 #define MAX_MSGSIZE 15000
#define MAX_CHKSUMSIZE 1024 #define MAX_CHKSUMSIZE 1024
#define MAX_BUFSIZE (((MAX_MSGSIZE + 2) / 3) * 4) + (((MAX_CHKSUMSIZE + 2) / 3) * 4) + 1536 #define MAX_BUFSIZE (((MAX_MSGSIZE + 2) / 3) * 4) + (((MAX_CHKSUMSIZE + 2) / 3) * 4) + 2048
/* #define MAX_MSGSIZE ((MAX_BUFSIZE - 1536) / 2) - MAX_CHKSUMSIZE //for bin to hex*/ /* #define MAX_MSGSIZE ((MAX_BUFSIZE - 1536) / 2) - MAX_CHKSUMSIZE //for bin to hex*/
/* #define MAX_MSGSIZE ((MAX_BUFSIZE - 1536) / 4 * 3) - MAX_CHKSUMSIZE //for base64 */ /* #define MAX_MSGSIZE ((MAX_BUFSIZE - 1536) / 4 * 3) - MAX_CHKSUMSIZE //for base64 */
#define MAX_BSNSIZE 128
#define NONCE_SIZE 64
#define ISSUER_PUBLIC_KEY_FILE "ipk.bin" #define ISSUER_PUBLIC_KEY_FILE "ipk.bin"
#define ISSUER_SECRET_KEY_FILE "isk.bin" #define ISSUER_SECRET_KEY_FILE "isk.bin"

Loading…
Cancel
Save