From: Dmitry Belyavskiy Date: Sun, 20 Aug 2017 13:24:02 +0000 (+0300) Subject: Examples of calculation of GOST2012 digest values. X-Git-Tag: v3.0.0~430 X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=commitdiff_plain;h=39020b5190e34e53ac0204c49e5480824c6a248a;p=openssl-gost%2Fengine.git Examples of calculation of GOST2012 digest values. --- diff --git a/etalon/M1 b/etalon/M1 new file mode 100644 index 0000000..f2316d6 --- /dev/null +++ b/etalon/M1 @@ -0,0 +1 @@ +012345678901234567890123456789012345678901234567890123456789012 \ No newline at end of file diff --git a/etalon/M2 b/etalon/M2 new file mode 100644 index 0000000..57f9b3f --- /dev/null +++ b/etalon/M2 @@ -0,0 +1 @@ +Ñå âåòðè, Ñòðèáîæè âíóöè, âåþòú ñ ìîðÿ ñòðåëàìè íà õðàáðûÿ ïëúêû Èãîðåâû \ No newline at end of file diff --git a/etalon/M3 b/etalon/M3 new file mode 100644 index 0000000..e69de29 diff --git a/etalon/M4 b/etalon/M4 new file mode 100644 index 0000000..9017fd9 Binary files /dev/null and b/etalon/M4 differ diff --git a/etalon/M5 b/etalon/M5 new file mode 100644 index 0000000..f5aca3f --- /dev/null +++ b/etalon/M5 @@ -0,0 +1,2 @@ +123456789012345678901234567890 +123456789012345678901234567890 diff --git a/etalon/M6 b/etalon/M6 new file mode 100644 index 0000000..1f8ad63 --- /dev/null +++ b/etalon/M6 @@ -0,0 +1,6 @@ +123456789012345678901234567890 +123456789012345678901234567890 +123456789012345678901234567890 +123456789012345678901234567890 +123456789012345678901234567890 +123456789012345678901234567890 diff --git a/etalon/dgst.result b/etalon/dgst.result new file mode 100644 index 0000000..5c4fe80 --- /dev/null +++ b/etalon/dgst.result @@ -0,0 +1,14 @@ +md_gost12_512(M1)= 1b54d01a4af5b9d5cc3d86d68d285462b19abc2475222f35c085122be4ba1ffa00ad30f8767b3a82384c6574f024c311e2a481332b08ef7f41797891c1646f48 +md_gost12_512(M2)= 1e88e62226bfca6f9994f1f2d51569e0daf8475a3b0fe61a5300eee46d961376035fe83549ada2b8620fcd7c496ce5b33f0cb9dddc2b6460143b03dabac9fb28 +md_gost12_512(M3)= 8e945da209aa869f0455928529bcae4679e9873ab707b55315f56ceb98bef0a7362f715528356ee83cda5f2aac4c6ad2ba3a715c1bcd81cb8e9f90bf4c1c1a8a +md_gost12_512(M4)= b0fd29ac1b0df441769ff3fdb8dc564df67721d6ac06fb28ceffb7bbaa7948c6c014ac999235b58cb26fb60fb112a145d7b4ade9ae566bf2611402c552d20db7 +md_gost12_512(M5)= 363b449ec81ae40b3a407b125c3b1c2b768b50496bcb5f690b89e9007b06e4084182ed45d4072a67fec9d3421dab013da2aabc1d6528e8e775aec7b3457ac675 +md_gost12_512(M6)= 8781dfc81d2db6a41d1857f3230b3ffe2bda574273ea1947189aaa5468470df1c4b374b1a2b56e59d11d213fea57e3514543b0ced9b20e553ae66425ec909cfd +md_gost12_512(M7)= 03e12ae816c7f794929b7550781d22efc7bc724fd70e295f3123d157c4d577fdc325943ef2b999cc43205dc323fa930bddc60d44663d76844b779fd36aa89de3 +md_gost12_256(M1)= 9d151eefd8590b89daa6ba6cb74af9275dd051026bb149a452fd84e5e57b5500 +md_gost12_256(M2)= 9dd2fe4e90409e5da87f53976d7405b0c0cac628fc669a741d50063c557e8f50 +md_gost12_256(M3)= 3f539a213e97c802cc229d474c6aa32a825a360b2a933a949fd925208d9ce1bb +md_gost12_256(M4)= df1fda9ce83191390537358031db2ecaa6aa54cd0eda241dc107105e13636b95 +md_gost12_256(M5)= f0a557f6a04a90ab1811c1b6e9b078e4163b74037c6cf59f52444a37f48e11d8 +md_gost12_256(M6)= 2f4f651fe88fea46ec6f2223728d8dff3968893558ef00a310c23e7d1923ba0c +md_gost12_256(M7)= 633b567983d60243837715e56cc52443ffff9824170ad60b613b2dd6fabf2f40 diff --git a/etalon/make4Gb b/etalon/make4Gb new file mode 100755 index 0000000..72d0881 --- /dev/null +++ b/etalon/make4Gb @@ -0,0 +1,15 @@ +cat M5 M6 > tmp1 +cat tmp1 tmp1 tmp1 tmp1 > tmp2 +cat tmp2 tmp2 tmp2 tmp2 > tmp1 +cat tmp1 tmp1 tmp1 tmp1 > tmp2 +cat tmp2 tmp2 tmp2 tmp2 > tmp1 +cat tmp1 tmp1 tmp1 tmp1 > tmp2 +cat tmp2 tmp2 tmp2 tmp2 > tmp1 +cat tmp1 tmp1 tmp1 tmp1 > tmp2 +cat tmp2 tmp2 tmp2 tmp2 > tmp1 +cat tmp1 tmp1 tmp1 tmp1 > tmp2 +cat tmp2 tmp2 tmp2 tmp2 > tmp1 +cat tmp1 tmp1 tmp1 tmp1 > tmp2 +cat tmp2 tmp2 tmp2 tmp2 > tmp1 +cat M2 tmp1 > M7 +rm -f tmp1 tmp2