diff options
| author | miod <> | 2014-11-09 19:17:13 +0000 |
|---|---|---|
| committer | miod <> | 2014-11-09 19:17:13 +0000 |
| commit | 35d7dd4666beda50f5094b8804802132fbe722ef (patch) | |
| tree | 8f4747a1df4b007feca32e262b38052339c686c1 /src/lib/libcrypto/objects | |
| parent | d92e6fdf5aae7a320effa3de769ce4c0378485c4 (diff) | |
| download | openbsd-35d7dd4666beda50f5094b8804802132fbe722ef.tar.gz openbsd-35d7dd4666beda50f5094b8804802132fbe722ef.tar.bz2 openbsd-35d7dd4666beda50f5094b8804802132fbe722ef.zip | |
GOST crypto algorithms (well, most of them), ported from the removed GOST
engine to regular EVP citizens, contributed by Dmitry Eremin-Solenikov;
libcrypto bits only for now.
This is a verbatim import of Dmitry's work, and does not compile in this
state; the forthcoming commits will address these issues.
None of the GOST code is enabled in libcrypto yet, for it still gets
compiled with OPENSSL_NO_GOST defined. However, the public header gost.h
will be installed.
Diffstat (limited to 'src/lib/libcrypto/objects')
| -rw-r--r-- | src/lib/libcrypto/objects/obj_mac.num | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/objects/obj_xref.h | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/objects/obj_xref.txt | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/objects/objects.txt | 15 |
4 files changed, 34 insertions, 1 deletions
diff --git a/src/lib/libcrypto/objects/obj_mac.num b/src/lib/libcrypto/objects/obj_mac.num index bcdda5163e..d3a658e59c 100644 --- a/src/lib/libcrypto/objects/obj_mac.num +++ b/src/lib/libcrypto/objects/obj_mac.num | |||
| @@ -935,3 +935,15 @@ brainpoolP512r1 934 | |||
| 935 | brainpoolP512t1 935 | 935 | brainpoolP512t1 935 |
| 936 | FRP256v1 936 | 936 | FRP256v1 936 |
| 937 | chacha20 937 | 937 | chacha20 937 |
| 938 | gost89_ecb 938 | ||
| 939 | gost89_cbc 939 | ||
| 940 | tc26 940 | ||
| 941 | id_tc26_gost3411_2012_256 941 | ||
| 942 | id_tc26_gost3411_2012_512 942 | ||
| 943 | id_tc26_gost_3410_2012_512_paramSetA 943 | ||
| 944 | id_tc26_gost_3410_2012_512_paramSetB 944 | ||
| 945 | id_tc26_gost_28147_param_Z 945 | ||
| 946 | id_tc26_gost3410_2012_256 946 | ||
| 947 | id_tc26_gost3410_2012_512 947 | ||
| 948 | id_tc26_signwithdigest_gost3410_2012_256 948 | ||
| 949 | id_tc26_signwithdigest_gost3410_2012_512 949 | ||
diff --git a/src/lib/libcrypto/objects/obj_xref.h b/src/lib/libcrypto/objects/obj_xref.h index fec28d1127..4499456694 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.2 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: obj_xref.h,v 1.3 2014/11/09 19:17:13 miod Exp $ */ |
| 2 | /* AUTOGENERATED BY objxref.pl, DO NOT EDIT */ | 2 | /* AUTOGENERATED BY objxref.pl, DO NOT EDIT */ |
| 3 | 3 | ||
| 4 | typedef struct | 4 | typedef struct |
| @@ -40,6 +40,8 @@ static const nid_triple sigoid_srt[] = | |||
| 40 | {NID_id_GostR3411_94_with_GostR3410_94_cc, NID_id_GostR3411_94, NID_id_GostR3410_94_cc}, | 40 | {NID_id_GostR3411_94_with_GostR3410_94_cc, NID_id_GostR3411_94, NID_id_GostR3410_94_cc}, |
| 41 | {NID_id_GostR3411_94_with_GostR3410_2001_cc, NID_id_GostR3411_94, NID_id_GostR3410_2001_cc}, | 41 | {NID_id_GostR3411_94_with_GostR3410_2001_cc, NID_id_GostR3411_94, NID_id_GostR3410_2001_cc}, |
| 42 | {NID_rsassaPss, NID_undef, NID_rsaEncryption}, | 42 | {NID_rsassaPss, NID_undef, NID_rsaEncryption}, |
| 43 | {NID_id_tc26_signwithdigest_gost3410_2012_256, NID_id_tc26_gost3411_2012_256, NID_id_GostR3410_2001}, | ||
| 44 | {NID_id_tc26_signwithdigest_gost3410_2012_512, NID_id_tc26_gost3411_2012_512, NID_id_GostR3410_2001}, | ||
| 43 | }; | 45 | }; |
| 44 | 46 | ||
| 45 | static const nid_triple * const sigoid_srt_xref[] = | 47 | static const nid_triple * const sigoid_srt_xref[] = |
| @@ -74,5 +76,7 @@ static const nid_triple * const sigoid_srt_xref[] = | |||
| 74 | &sigoid_srt[26], | 76 | &sigoid_srt[26], |
| 75 | &sigoid_srt[27], | 77 | &sigoid_srt[27], |
| 76 | &sigoid_srt[28], | 78 | &sigoid_srt[28], |
| 79 | &sigoid_srt[30], | ||
| 80 | &sigoid_srt[31], | ||
| 77 | }; | 81 | }; |
| 78 | 82 | ||
diff --git a/src/lib/libcrypto/objects/obj_xref.txt b/src/lib/libcrypto/objects/obj_xref.txt index cb917182ee..dde52d8143 100644 --- a/src/lib/libcrypto/objects/obj_xref.txt +++ b/src/lib/libcrypto/objects/obj_xref.txt | |||
| @@ -44,3 +44,5 @@ id_GostR3411_94_with_GostR3410_2001 id_GostR3411_94 id_GostR3410_2001 | |||
| 44 | id_GostR3411_94_with_GostR3410_94 id_GostR3411_94 id_GostR3410_94 | 44 | id_GostR3411_94_with_GostR3410_94 id_GostR3411_94 id_GostR3410_94 |
| 45 | id_GostR3411_94_with_GostR3410_94_cc id_GostR3411_94 id_GostR3410_94_cc | 45 | 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 | ||
| 48 | id_tc26_signwithdigest_gost3410_2012_512 id_tc26_gost3411_2012_512 id_tc26_gost3410_2012_512 | ||
diff --git a/src/lib/libcrypto/objects/objects.txt b/src/lib/libcrypto/objects/objects.txt index bb44aa77a3..1ce73cc984 100644 --- a/src/lib/libcrypto/objects/objects.txt +++ b/src/lib/libcrypto/objects/objects.txt | |||
| @@ -1313,3 +1313,18 @@ brainpool 1 14 : brainpoolP512t1 | |||
| 1313 | # ChaCha Stream Cipher | 1313 | # ChaCha Stream Cipher |
| 1314 | !Cname chacha20 | 1314 | !Cname chacha20 |
| 1315 | : ChaCha : chacha | 1315 | : ChaCha : chacha |
| 1316 | : gost89-ecb | ||
| 1317 | : gost89-cbc | ||
| 1318 | |||
| 1319 | member-body 643 7 1 : tc26 | ||
| 1320 | !Cname id-tc26-gost3411-2012-256 | ||
| 1321 | tc26 1 2 2 : streebog256 : GOST R 34.11-2012 (256 bit) | ||
| 1322 | !Cname id-tc26-gost3411-2012-512 | ||
| 1323 | tc26 1 2 3 : streebog512 : GOST R 34-11-2012 (512 bit) | ||
| 1324 | tc26 2 1 2 1 : id-tc26-gost-3410-2012-512-paramSetA | ||
| 1325 | tc26 2 1 2 2 : id-tc26-gost-3410-2012-512-paramSetB | ||
| 1326 | tc26 2 5 1 1 : id-tc26-gost-28147-param-Z | ||
| 1327 | tc26 1 1 1 : id-tc26-gost3410-2012-256 : GOST R 34.10-2012 (256 bit) | ||
| 1328 | tc26 1 1 2 : id-tc26-gost3410-2012-512 : GOST R 34.10-2012 (512 bit) | ||
| 1329 | tc26 1 3 2 : id-tc26-signwithdigest-gost3410-2012-256 : GOST R 34.11-2012 with GOST R 34.10-2012 (256 bit) | ||
| 1330 | tc26 1 3 3 : id-tc26-signwithdigest-gost3410-2012-512 : GOST R 34.11-2012 with GOST R 34.10-2012 (512 bit) | ||
