国密

2019-01-24  本文已影响18人  阿群1986

https://github.com/liuqun/GmSSL/blob/master/ssl/ssl_locl.h

/* Bits for algorithm_auth (server authentication) */
#  define SSL_aSM2               0x00000100U
#  define SSL_aSM9               0x00000200U



/* RSA auth */
# define SSL_aRSA                0x00000001U

/* DSS auth */
# define SSL_aDSS                0x00000002U

/* no auth (i.e. use ADH or AECDH) */
# define SSL_aNULL               0x00000004U

/* ECDSA auth*/
# define SSL_aECDSA              0x00000008U

/* PSK auth */
# define SSL_aPSK                0x00000010U

/* GOST R 34.10-2001 signature auth */
# define SSL_aGOST01             0x00000020U

/* SRP auth */
# define SSL_aSRP                0x00000040U

/* GOST R 34.10-2012 signature auth */
# define SSL_aGOST12             0x00000080U
/* Bits for algorithm_enc (symmetric encryption) */
# define SSL_DES                 0x00000001U
# define SSL_3DES                0x00000002U
# define SSL_RC4                 0x00000004U
# define SSL_RC2                 0x00000008U
# define SSL_IDEA                0x00000010U
# define SSL_eNULL               0x00000020U
# define SSL_AES128              0x00000040U
# define SSL_AES256              0x00000080U
# define SSL_CAMELLIA128         0x00000100U
# define SSL_CAMELLIA256         0x00000200U
# define SSL_eGOST2814789CNT     0x00000400U
# define SSL_SEED                0x00000800U
# define SSL_AES128GCM           0x00001000U
# define SSL_AES256GCM           0x00002000U
# define SSL_AES128CCM           0x00004000U
# define SSL_AES256CCM           0x00008000U
# define SSL_AES128CCM8          0x00010000U
# define SSL_AES256CCM8          0x00020000U
# define SSL_eGOST2814789CNT12   0x00040000U
# define SSL_CHACHA20POLY1305    0x00080000U
# define SSL_SMS4                0x00100000U
# define SSL_SMS4GCM             0x00200000U
# define SSL_SMS4CCM             0x00400000U
# define SSL_SMS4CCM8            0x00800000U
# define SSL_ZUC                 0x01000000U
# define SSL_SM1                 0x02000000U
# define SSL_SSF33               0x04000000U

# define SSL_AESGCM              (SSL_AES128GCM | SSL_AES256GCM)
# define SSL_AESCCM              (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
# define SSL_AES                 (SSL_AES128|SSL_AES256|SSL_AESGCM|SSL_AESCCM)
# define SSL_CAMELLIA            (SSL_CAMELLIA128|SSL_CAMELLIA256)
# define SSL_CHACHA20            (SSL_CHACHA20POLY1305)
# define SSL_SMS4ALL             (SSL_SMS4 | SSL_SMS4GCM | SSL_SMS4CCM | SSL_SMS4CCM8)
上一篇下一篇

猜你喜欢

热点阅读