国密

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)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值