libressl/0011-Add-OIDs-for-HMAC-using-Streebog-GOST-R-34.11-2012-h.patch

43 lines
1.7 KiB
Diff
Raw Normal View History

From 6971f6b41730ba03beb943114a44cc6898b9b663 Mon Sep 17 00:00:00 2001
From: jsing <>
Date: Fri, 5 Jun 2020 17:28:56 +0000
Subject: [PATCH 11/87] Add OIDs for HMAC using Streebog (GOST R 34.11-2012)
hash function.
Diff from Dmitry Baryshkov <dbaryshkov@gmail.com>
Sponsored by ROSA Linux
ok inoguchi@ tb@
---
src/lib/libcrypto/objects/obj_mac.num | 2 ++
src/lib/libcrypto/objects/objects.txt | 2 ++
2 files changed, 4 insertions(+)
diff --git a/src/lib/libcrypto/objects/obj_mac.num b/src/lib/libcrypto/objects/obj_mac.num
index 3f0b5666f..ba75ec246 100644
--- a/src/lib/libcrypto/objects/obj_mac.num
+++ b/src/lib/libcrypto/objects/obj_mac.num
@@ -996,3 +996,5 @@ id_tc26_gost_3410_12_256_paramSetC 995
id_tc26_gost_3410_12_256_paramSetD 996
id_tc26_gost_3410_12_512_paramSetTest 997
id_tc26_gost_3410_12_512_paramSetC 998
+id_tc26_hmac_gost_3411_12_256 999
+id_tc26_hmac_gost_3411_12_512 1000
diff --git a/src/lib/libcrypto/objects/objects.txt b/src/lib/libcrypto/objects/objects.txt
index 42f31c3cb..8e533530f 100644
--- a/src/lib/libcrypto/objects/objects.txt
+++ b/src/lib/libcrypto/objects/objects.txt
@@ -1372,6 +1372,8 @@ member-body 643 7 1 : tc26
tc26 1 2 2 : streebog256 : GOST R 34.11-2012 (256 bit)
!Cname id-tc26-gost3411-2012-512
tc26 1 2 3 : streebog512 : GOST R 34-11-2012 (512 bit)
+tc26 1 4 1 : id-tc26-hmac-gost-3411-12-256 : HMAC STREEBOG 256
+tc26 1 4 2 : id-tc26-hmac-gost-3411-12-512 : HMAC STREEBOG 512
tc26 2 1 1 1 : id-tc26-gost-3410-12-256-paramSetA : GOST R 34.10-2012 (256 bit) ParamSet A
tc26 2 1 1 2 : id-tc26-gost-3410-12-256-paramSetB : GOST R 34.10-2012 (256 bit) ParamSet B
tc26 2 1 1 3 : id-tc26-gost-3410-12-256-paramSetC : GOST R 34.10-2012 (256 bit) ParamSet C
--
2.17.1