Add ChaCha20-Poly1305 and ChaCha20 NIDs.
authorAndy Polyakov <appro@openssl.org>
Wed, 9 Dec 2015 20:15:28 +0000 (21:15 +0100)
committerAndy Polyakov <appro@openssl.org>
Thu, 10 Dec 2015 10:59:49 +0000 (11:59 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/objects/obj_dat.h
crypto/objects/obj_mac.num
crypto/objects/objects.txt
include/openssl/obj_mac.h

index 9fd20596ce3137113d64356e093553a7b44d9b66..d1382a2665c74529c33ae047a2c4304c7c0d4548 100644 (file)
@@ -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" */
index ac8a1a2a63d4cf433fbef9ef5dd1a80818155d68..2993f5647e14c878201efb37b20dc6c20bec3fd6 100644 (file)
@@ -1015,3 +1015,5 @@ grasshopper_ofb           1014
 grasshopper_cbc                1015
 grasshopper_cfb                1016
 grasshopper_mac                1017
+chacha20_poly1305              1018
+chacha20               1019
index 9f5f6c4e507163f5946057616a5a4a756a4dfe41..29517e3d7a486239f496793b80e70bc54f2284aa 100644 (file)
@@ -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
 
index 4388f7093105e7486b08822c0d34cbb66803e1c9..060126b56c6a594aa34593d1807289ba32b2f5f2 100644 (file)
 #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