mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Add ChaCha20-Poly1305 and ChaCha20 NIDs.
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
7dcb21869b
commit
72bb2f64fc
@ -62,9 +62,9 @@
|
||||
* [including the GNU Public Licence.]
|
||||
*/
|
||||
|
||||
#define NUM_NID 1018
|
||||
#define NUM_SN 1011
|
||||
#define NUM_LN 1011
|
||||
#define NUM_NID 1020
|
||||
#define NUM_SN 1013
|
||||
#define NUM_LN 1013
|
||||
#define NUM_OBJ 936
|
||||
|
||||
static const unsigned char lvalues[6604]={
|
||||
@ -2667,6 +2667,8 @@ static const ASN1_OBJECT nid_objs[NUM_NID]={
|
||||
{"grasshopper-cbc","grasshopper-cbc",NID_grasshopper_cbc,0,NULL,0},
|
||||
{"grasshopper-cfb","grasshopper-cfb",NID_grasshopper_cfb,0,NULL,0},
|
||||
{"grasshopper-mac","grasshopper-mac",NID_grasshopper_mac,0,NULL,0},
|
||||
{"ChaCha20-Poly1305","chacha20-poly1305",NID_chacha20_poly1305,0,NULL,0},
|
||||
{"ChaCha20","chacha20",NID_chacha20,0,NULL,0},
|
||||
};
|
||||
|
||||
static const unsigned int sn_objs[NUM_SN]={
|
||||
@ -2746,6 +2748,8 @@ static const unsigned int sn_objs[NUM_SN]={
|
||||
13, /* "CN" */
|
||||
141, /* "CRLReason" */
|
||||
417, /* "CSPName" */
|
||||
1019, /* "ChaCha20" */
|
||||
1018, /* "ChaCha20-Poly1305" */
|
||||
367, /* "CrlID" */
|
||||
391, /* "DC" */
|
||||
31, /* "DES-CBC" */
|
||||
@ -3973,6 +3977,8 @@ static const unsigned int ln_objs[NUM_LN]={
|
||||
677, /* "certicom-arc" */
|
||||
517, /* "certificate extensions" */
|
||||
883, /* "certificateRevocationList" */
|
||||
1019, /* "chacha20" */
|
||||
1018, /* "chacha20-poly1305" */
|
||||
54, /* "challengePassword" */
|
||||
407, /* "characteristic-two-field" */
|
||||
395, /* "clearance" */
|
||||
|
@ -1015,3 +1015,5 @@ grasshopper_ofb 1014
|
||||
grasshopper_cbc 1015
|
||||
grasshopper_cfb 1016
|
||||
grasshopper_mac 1017
|
||||
chacha20_poly1305 1018
|
||||
chacha20 1019
|
||||
|
@ -1368,6 +1368,8 @@ kisa 1 6 : SEED-OFB : seed-ofb
|
||||
: AES-128-CBC-HMAC-SHA256 : aes-128-cbc-hmac-sha256
|
||||
: AES-192-CBC-HMAC-SHA256 : aes-192-cbc-hmac-sha256
|
||||
: AES-256-CBC-HMAC-SHA256 : aes-256-cbc-hmac-sha256
|
||||
: ChaCha20-Poly1305 : chacha20-poly1305
|
||||
: ChaCha20 : chacha20
|
||||
|
||||
ISO-US 10046 2 1 : dhpublicnumber : X9.42 DH
|
||||
|
||||
|
@ -4301,6 +4301,14 @@
|
||||
#define LN_aes_256_cbc_hmac_sha256 "aes-256-cbc-hmac-sha256"
|
||||
#define NID_aes_256_cbc_hmac_sha256 950
|
||||
|
||||
#define SN_chacha20_poly1305 "ChaCha20-Poly1305"
|
||||
#define LN_chacha20_poly1305 "chacha20-poly1305"
|
||||
#define NID_chacha20_poly1305 1018
|
||||
|
||||
#define SN_chacha20 "ChaCha20"
|
||||
#define LN_chacha20 "chacha20"
|
||||
#define NID_chacha20 1019
|
||||
|
||||
#define SN_dhpublicnumber "dhpublicnumber"
|
||||
#define LN_dhpublicnumber "X9.42 DH"
|
||||
#define NID_dhpublicnumber 920
|
||||
|
Loading…
Reference in New Issue
Block a user