gost_digest_nids[4]=NID_gost_mac_12;
gost_pkey_meth_nids[2]=NID_gost2012_256;
gost_pkey_meth_nids[3]=NID_gost2012_512;
+ gost_pkey_meth_nids[4]=NID_gost_mac_12;
/* EVP_CIPHERs */
cipher_gost_cbc.nid = NID_gost89_cbc;
cipher_gost_cpcnt_12.nid = NID_gost89_cnt_12;
$engine_info= <<EOINF;
(gost) Reference implementation of GOST engine
- [gost89, gost89-cnt, gost89-cnt-12, gost89-cbc, md_gost94, gost-mac, md_gost12_256, md_gost12_512, gost-mac-12, gost2001, gost-mac, gost2012_256, gost2012_512, UNDEF]
+ [gost89, gost89-cnt, gost89-cnt-12, gost89-cbc, md_gost94, gost-mac, md_gost12_256, md_gost12_512, gost-mac-12, gost2001, gost-mac, gost2012_256, gost2012_512, gost-mac-12]
EOINF
}
#!/usr/bin/perl
-use Test::More tests => 10;
+use Test::More tests => 11;
use Cwd 'abs_path';
# prepare data for
"GOST-MAC-gost-mac(testbig.dat)= d3978b1a\n",
"GOST MAC - big data");
+is(`openssl dgst -engine ${engine} -mac gost-mac-12 -macopt key:${key} testdata.dat`,
+"GOST-MAC-12-gost-mac-12(testdata.dat)= be4453ec\n",
+"GOST MAC - parameters 2012");
+
unlink('testdata.dat');
unlink('testbig.dat');