Add scrypt OID from draft-josefsson-scrypt-kdf-03
authorDr. Stephen Henson <steve@openssl.org>
Fri, 30 Jan 2015 16:08:18 +0000 (16:08 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 21 May 2015 11:48:02 +0000 (12:48 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/objects/obj_dat.h
crypto/objects/obj_mac.num
crypto/objects/objects.txt
include/openssl/obj_mac.h

index 9422b8909457a2ec6b0d2321a98b726f8eaf1203..1ccbced585bc15b73aa961e181e4af526c689e0f 100644 (file)
  * [including the GNU Public Licence.]
  */
 
-#define NUM_NID 973
-#define NUM_SN 966
-#define NUM_LN 966
-#define NUM_OBJ 902
+#define NUM_NID 974
+#define NUM_SN 967
+#define NUM_LN 967
+#define NUM_OBJ 903
 
-static const unsigned char lvalues[6355]={
+static const unsigned char lvalues[6364]={
 0x2A,0x86,0x48,0x86,0xF7,0x0D,               /* [  0] OBJ_rsadsi */
 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,          /* [  6] OBJ_pkcs */
 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x02,0x02,     /* [ 13] OBJ_md2 */
@@ -964,6 +964,7 @@ static const unsigned char lvalues[6355]={
 0x03,0xA2,0x31,0x05,0x03,0x01,0x09,0x2F,     /* [6330] OBJ_camellia_256_ccm */
 0x03,0xA2,0x31,0x05,0x03,0x01,0x09,0x31,     /* [6338] OBJ_camellia_256_ctr */
 0x03,0xA2,0x31,0x05,0x03,0x01,0x09,0x32,     /* [6346] OBJ_camellia_256_cmac */
+0x2B,0x06,0x01,0x04,0x01,0xDA,0x47,0x04,0x0B,/* [6354] OBJ_id_scrypt */
 };
 
 static const ASN1_OBJECT nid_objs[NUM_NID]={
@@ -2553,6 +2554,7 @@ static const ASN1_OBJECT nid_objs[NUM_NID]={
        &(lvalues[6338]),0},
 {"CAMELLIA-256-CMAC","camellia-256-cmac",NID_camellia_256_cmac,8,
        &(lvalues[6346]),0},
+{"id-scrypt","id-scrypt",NID_id_scrypt,9,&(lvalues[6354]),0},
 };
 
 static const unsigned int sn_objs[NUM_SN]={
@@ -3098,6 +3100,7 @@ static const unsigned int sn_objs[NUM_SN]={
 314,   /* "id-regInfo" */
 322,   /* "id-regInfo-certReq" */
 321,   /* "id-regInfo-utf8Pairs" */
+973,   /* "id-scrypt" */
 512,   /* "id-set" */
 191,   /* "id-smime-aa" */
 215,   /* "id-smime-aa-contentHint" */
@@ -4053,6 +4056,7 @@ static const unsigned int ln_objs[NUM_LN]={
 314,   /* "id-regInfo" */
 322,   /* "id-regInfo-certReq" */
 321,   /* "id-regInfo-utf8Pairs" */
+973,   /* "id-scrypt" */
 191,   /* "id-smime-aa" */
 215,   /* "id-smime-aa-contentHint" */
 218,   /* "id-smime-aa-contentIdentifier" */
@@ -5148,6 +5152,7 @@ static const unsigned int obj_objs[NUM_OBJ]={
 856,   /* OBJ_LocalKeySet                  1 3 6 1 4 1 311 17 2 */
 390,   /* OBJ_dcObject                     1 3 6 1 4 1 1466 344 */
 91,    /* OBJ_bf_cbc                       1 3 6 1 4 1 3029 1 2 */
+973,   /* OBJ_id_scrypt                    1 3 6 1 4 1 11591 4 11 */
 315,   /* OBJ_id_regCtrl_regToken          1 3 6 1 5 5 7 5 1 1 */
 316,   /* OBJ_id_regCtrl_authenticator     1 3 6 1 5 5 7 5 1 2 */
 317,   /* OBJ_id_regCtrl_pkiPublicationInfo 1 3 6 1 5 5 7 5 1 3 */
index f4fe14f5f69843c0ebc7916100d7b7e6efc13dc8..af57c6845178660355a5fcb4f40f4f9e6391e472 100644 (file)
@@ -970,3 +970,4 @@ camellia_256_gcm            969
 camellia_256_ccm               970
 camellia_256_ctr               971
 camellia_256_cmac              972
+id_scrypt              973
index 25a9bb88aac02681ace4974ce5c3bd4ac792e669..655f40514b000b7be07fab1cbccf370f64b8e6bb 100644 (file)
@@ -1360,3 +1360,6 @@ secg-scheme 14 3 : dhSinglePass-cofactorDH-sha512kdf-scheme
 1 3 6 1 4 1 311 60 2 1 1       : jurisdictionL         : jurisdictionLocalityName
 1 3 6 1 4 1 311 60 2 1 2       : jurisdictionST        : jurisdictionStateOrProvinceName
 1 3 6 1 4 1 311 60 2 1 3       : jurisdictionC         : jurisdictionCountryName
+
+# SCRYPT algorithm
+1 3 6 1 4 1 11591 4 11         : id-scrypt
index 475a9dc34dbf6c0794e78fed79b7dc161231dab8..0e6a99ee2052572f72511a84af85091011cd5d47 100644 (file)
 #define LN_jurisdictionCountryName              "jurisdictionCountryName"
 #define NID_jurisdictionCountryName             957
 #define OBJ_jurisdictionCountryName             1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,3L
+
+#define SN_id_scrypt            "id-scrypt"
+#define NID_id_scrypt           973
+#define OBJ_id_scrypt           1L,3L,6L,1L,4L,1L,11591L,4L,11L