<div dir="auto">Dear Uri,<div dir="auto"><br></div><div dir="auto">Is this a full configuration file?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 19 июля 2019 г., 21:09 Blumenthal, Uri - 0553 - MITLL <<a href="mailto:uri@ll.mit.edu">uri@ll.mit.edu</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">MacOS Mojave 10.14.5, OpenSSL-1.1.1c (Macports-installed).<br>
<br>
Engines defined in the openssl.cnf file:<br>
<br>
#############<br>
[engine_section]<br>
pkcs11 = pkcs11_section<br>
gost   = gost_section<br>
<br>
[pkcs11_section]<br>
engine_id = pkcs11<br>
dynamic_path = /opt/local/lib/engines-1.1/libpkcs11.so<br>
MODULE_PATH  = /Library/OpenSC/lib/opensc-pkcs11.so<br>
init = 0<br>
<br>
[gost_section]<br>
engine_id = gost<br>
dynamic_path = /opt/local/lib/engines-1.1/gost.dylib<br>
default_algorithms = ALL<br>
CRYPT_PARAMS = id-Gost28147-89-CryptoPro-A-ParamSet<br>
init = 1<br>
#############<br>
<br>
Note, whether the above has "init = 1" or not, does not alter the outcome.<br>
<br>
Engine in question is "gost". <br>
<br>
First, the engine does not load automatically/dynamically. For "openssl dgst" I have to specify it explicitly, otherwise the algorithms it provides, are not available:<br>
<br>
$ openssl dgst -md_gost94 ~/LastTest.log<br>
dgst: Unrecognized flag md_gost94<br>
dgst: Use -help for summary.<br>
$ openssl dgst -engine gost -md_gost94 ~/LastTest.log<br>
engine "gost" set.<br>
md_gost94(/Users/ur20980/LastTest.log)= e82e6e515c86851498eac606722b50b724b1f95952d4edb7202029f127751816<br>
$<br>
<br>
Second - even when I explicitly specify the engine, "openssl speed" refuses to recognize the ciphers provided by it, though "openssl enc" shows that it can access them:<br>
<br>
$ openssl speed -engine gost -evp gost89-cbc<br>
speed: gost89-cbc is an unknown cipher or digest<br>
$ openssl enc -engine gost -ciphers<br>
engine "gost" set.<br>
Supported ciphers:<br>
-aes-128-cbc               -aes-128-cfb               -aes-128-cfb1             <br>
-aes-128-cfb8              -aes-128-ctr               -aes-128-ecb       <br>
. . . . .<br>
-des3-wrap                 -desx                      -desx-cbc                 <br>
-gost89                    -gost89-cbc                -gost89-cnt               <br>
-gost89-cnt-12             -grasshopper-cbc           -grasshopper-cfb          <br>
-grasshopper-ctr           -grasshopper-ecb           -grasshopper-ofb          <br>
-id-aes128-wrap            -id-aes128-wrap-pad        -id-aes192-wrap<br>
<br>
<br>
Seems like a bug...?<br>
-- <br>
Regards,<br>
Uri<br>
</blockquote></div>