@@ -172,6 +172,7 @@ typedef int64_t INT64;
172172 #define XFREE (p , h , t ) free(p)
173173 #endif
174174 #define XMEMCPY (d ,s ,l ) memcpy((d),(s),(l))
175+ #define XMEMMOVE (d ,s ,l ) memmove((d),(s),(l))
175176 #define XMEMSET (b ,c ,l ) memset((b),(c),(l))
176177 #define XMEMCMP (s1 ,s2 ,n ) memcmp((s1),(s2),(n))
177178 #define XSTRLEN (s1 ) strlen((s1))
@@ -428,10 +429,10 @@ typedef int64_t INT64;
428429#define MAX_SYM_BLOCK_SIZE 20
429430#endif
430431#ifndef MAX_SYM_KEY_BYTES
431- #define MAX_SYM_KEY_BYTES 256
432+ #define MAX_SYM_KEY_BYTES 32
432433#endif
433434#ifndef LABEL_MAX_BUFFER
434- #define LABEL_MAX_BUFFER 128
435+ #define LABEL_MAX_BUFFER 48
435436#endif
436437#ifndef MAX_RSA_KEY_BITS
437438#define MAX_RSA_KEY_BITS 2048
@@ -444,11 +445,11 @@ typedef int64_t INT64;
444445#define MAX_ECC_KEY_BITS 521
445446#endif
446447#ifndef MAX_ECC_KEY_BYTES
447- #define MAX_ECC_KEY_BYTES ((( MAX_ECC_KEY_BITS+7)/8)*2 )
448+ #define MAX_ECC_KEY_BYTES ((MAX_ECC_KEY_BITS+7)/8)
448449#endif
449450
450451#ifndef MAX_AES_KEY_BITS
451- #define MAX_AES_KEY_BITS 128
452+ #define MAX_AES_KEY_BITS 256
452453#endif
453454#ifndef MAX_AES_BLOCK_SIZE_BYTES
454455#define MAX_AES_BLOCK_SIZE_BYTES 16
0 commit comments