diff options
| author | inoguchi <> | 2021-05-12 10:24:39 +0000 |
|---|---|---|
| committer | inoguchi <> | 2021-05-12 10:24:39 +0000 |
| commit | d10068895b5fb100c5d293bda3d1c277b3e9c2fd (patch) | |
| tree | 7888231586d4cb9e5a8fe34f6ec316c8e87a5afa /src | |
| parent | a448ec1796224046b27ab5a2b40487da803fe552 (diff) | |
| download | openbsd-d10068895b5fb100c5d293bda3d1c277b3e9c2fd.tar.gz openbsd-d10068895b5fb100c5d293bda3d1c277b3e9c2fd.tar.bz2 openbsd-d10068895b5fb100c5d293bda3d1c277b3e9c2fd.zip | |
Add obj_xref for ECDH schemes in RFC 5753
Found missing sigoid_srt record in crypto/objects/obj_xref.h, and
this causes error while executing openssl cms -encrypt with EC key/cert.
Added required definitions to obj_xref.txt and obj_xref.h.
Issue reported by Theodore Wynnychenko (tmw <at> uchicago.edu) on misc.
ok tb@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/objects/obj_xref.h | 22 | ||||
| -rw-r--r-- | src/lib/libcrypto/objects/obj_xref.txt | 13 |
2 files changed, 34 insertions, 1 deletions
diff --git a/src/lib/libcrypto/objects/obj_xref.h b/src/lib/libcrypto/objects/obj_xref.h index 59c597ce41..cffd006999 100644 --- a/src/lib/libcrypto/objects/obj_xref.h +++ b/src/lib/libcrypto/objects/obj_xref.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: obj_xref.h,v 1.4 2016/12/21 15:49:29 jsing Exp $ */ | 1 | /* $OpenBSD: obj_xref.h,v 1.5 2021/05/12 10:24:39 inoguchi Exp $ */ |
| 2 | /* AUTOGENERATED BY objxref.pl, DO NOT EDIT */ | 2 | /* AUTOGENERATED BY objxref.pl, DO NOT EDIT */ |
| 3 | 3 | ||
| 4 | __BEGIN_HIDDEN_DECLS | 4 | __BEGIN_HIDDEN_DECLS |
| @@ -44,6 +44,16 @@ static const nid_triple sigoid_srt[] = | |||
| 44 | {NID_rsassaPss, NID_undef, NID_rsaEncryption}, | 44 | {NID_rsassaPss, NID_undef, NID_rsaEncryption}, |
| 45 | {NID_id_tc26_signwithdigest_gost3410_2012_256, NID_id_tc26_gost3411_2012_256, NID_id_GostR3410_2001}, | 45 | {NID_id_tc26_signwithdigest_gost3410_2012_256, NID_id_tc26_gost3411_2012_256, NID_id_GostR3410_2001}, |
| 46 | {NID_id_tc26_signwithdigest_gost3410_2012_512, NID_id_tc26_gost3411_2012_512, NID_id_GostR3410_2001}, | 46 | {NID_id_tc26_signwithdigest_gost3410_2012_512, NID_id_tc26_gost3411_2012_512, NID_id_GostR3410_2001}, |
| 47 | {NID_dhSinglePass_stdDH_sha1kdf_scheme, NID_sha1, NID_dh_std_kdf}, | ||
| 48 | {NID_dhSinglePass_stdDH_sha224kdf_scheme, NID_sha224, NID_dh_std_kdf}, | ||
| 49 | {NID_dhSinglePass_stdDH_sha256kdf_scheme, NID_sha256, NID_dh_std_kdf}, | ||
| 50 | {NID_dhSinglePass_stdDH_sha384kdf_scheme, NID_sha384, NID_dh_std_kdf}, | ||
| 51 | {NID_dhSinglePass_stdDH_sha512kdf_scheme, NID_sha512, NID_dh_std_kdf}, | ||
| 52 | {NID_dhSinglePass_cofactorDH_sha1kdf_scheme, NID_sha1, NID_dh_cofactor_kdf}, | ||
| 53 | {NID_dhSinglePass_cofactorDH_sha224kdf_scheme, NID_sha224, NID_dh_cofactor_kdf}, | ||
| 54 | {NID_dhSinglePass_cofactorDH_sha256kdf_scheme, NID_sha256, NID_dh_cofactor_kdf}, | ||
| 55 | {NID_dhSinglePass_cofactorDH_sha384kdf_scheme, NID_sha384, NID_dh_cofactor_kdf}, | ||
| 56 | {NID_dhSinglePass_cofactorDH_sha512kdf_scheme, NID_sha512, NID_dh_cofactor_kdf}, | ||
| 47 | }; | 57 | }; |
| 48 | 58 | ||
| 49 | static const nid_triple * const sigoid_srt_xref[] = | 59 | static const nid_triple * const sigoid_srt_xref[] = |
| @@ -61,19 +71,29 @@ static const nid_triple * const sigoid_srt_xref[] = | |||
| 61 | &sigoid_srt[5], | 71 | &sigoid_srt[5], |
| 62 | &sigoid_srt[8], | 72 | &sigoid_srt[8], |
| 63 | &sigoid_srt[12], | 73 | &sigoid_srt[12], |
| 74 | &sigoid_srt[32], | ||
| 75 | &sigoid_srt[37], | ||
| 64 | &sigoid_srt[6], | 76 | &sigoid_srt[6], |
| 65 | &sigoid_srt[10], | 77 | &sigoid_srt[10], |
| 66 | &sigoid_srt[11], | 78 | &sigoid_srt[11], |
| 67 | &sigoid_srt[13], | 79 | &sigoid_srt[13], |
| 68 | &sigoid_srt[24], | 80 | &sigoid_srt[24], |
| 69 | &sigoid_srt[20], | 81 | &sigoid_srt[20], |
| 82 | &sigoid_srt[34], | ||
| 83 | &sigoid_srt[39], | ||
| 70 | &sigoid_srt[14], | 84 | &sigoid_srt[14], |
| 71 | &sigoid_srt[21], | 85 | &sigoid_srt[21], |
| 86 | &sigoid_srt[35], | ||
| 87 | &sigoid_srt[40], | ||
| 72 | &sigoid_srt[15], | 88 | &sigoid_srt[15], |
| 73 | &sigoid_srt[22], | 89 | &sigoid_srt[22], |
| 90 | &sigoid_srt[36], | ||
| 91 | &sigoid_srt[41], | ||
| 74 | &sigoid_srt[16], | 92 | &sigoid_srt[16], |
| 75 | &sigoid_srt[23], | 93 | &sigoid_srt[23], |
| 76 | &sigoid_srt[19], | 94 | &sigoid_srt[19], |
| 95 | &sigoid_srt[33], | ||
| 96 | &sigoid_srt[38], | ||
| 77 | &sigoid_srt[25], | 97 | &sigoid_srt[25], |
| 78 | &sigoid_srt[26], | 98 | &sigoid_srt[26], |
| 79 | &sigoid_srt[27], | 99 | &sigoid_srt[27], |
diff --git a/src/lib/libcrypto/objects/obj_xref.txt b/src/lib/libcrypto/objects/obj_xref.txt index dde52d8143..3096e72934 100644 --- a/src/lib/libcrypto/objects/obj_xref.txt +++ b/src/lib/libcrypto/objects/obj_xref.txt | |||
| @@ -46,3 +46,16 @@ id_GostR3411_94_with_GostR3410_94_cc id_GostR3411_94 id_GostR3410_94_cc | |||
| 46 | id_GostR3411_94_with_GostR3410_2001_cc id_GostR3411_94 id_GostR3410_2001_cc | 46 | id_GostR3411_94_with_GostR3410_2001_cc id_GostR3411_94 id_GostR3410_2001_cc |
| 47 | id_tc26_signwithdigest_gost3410_2012_256 id_tc26_gost3411_2012_256 id_tc26_gost3410_2012_256 | 47 | id_tc26_signwithdigest_gost3410_2012_256 id_tc26_gost3411_2012_256 id_tc26_gost3410_2012_256 |
| 48 | id_tc26_signwithdigest_gost3410_2012_512 id_tc26_gost3411_2012_512 id_tc26_gost3410_2012_512 | 48 | id_tc26_signwithdigest_gost3410_2012_512 id_tc26_gost3411_2012_512 id_tc26_gost3410_2012_512 |
| 49 | |||
| 50 | # ECDH KDFs and their corresponding message digests and schemes | ||
| 51 | dhSinglePass_stdDH_sha1kdf_scheme sha1 dh_std_kdf | ||
| 52 | dhSinglePass_stdDH_sha224kdf_scheme sha224 dh_std_kdf | ||
| 53 | dhSinglePass_stdDH_sha256kdf_scheme sha256 dh_std_kdf | ||
| 54 | dhSinglePass_stdDH_sha384kdf_scheme sha384 dh_std_kdf | ||
| 55 | dhSinglePass_stdDH_sha512kdf_scheme sha512 dh_std_kdf | ||
| 56 | |||
| 57 | dhSinglePass_cofactorDH_sha1kdf_scheme sha1 dh_cofactor_kdf | ||
| 58 | dhSinglePass_cofactorDH_sha224kdf_scheme sha224 dh_cofactor_kdf | ||
| 59 | dhSinglePass_cofactorDH_sha256kdf_scheme sha256 dh_cofactor_kdf | ||
| 60 | dhSinglePass_cofactorDH_sha384kdf_scheme sha384 dh_cofactor_kdf | ||
| 61 | dhSinglePass_cofactorDH_sha512kdf_scheme sha512 dh_cofactor_kdf | ||
