<div dir="ltr">I can't reproduce the issue, using latest master for both gost and openssl:<br><br><div>/tmpram/gost > export OPENSSL_ENGINES=/tmpram/gost/engine/bin </div><div>/tmpram/gost > /tmpram/openssl-111-pre9-dev/bin/openssl pkey -engine gost -pubout -text -in tmp.pem<br></div><div>engine "gost" set.</div><div>Private key: 28A509558DB1969DB89A4CB517D8A759EAB79A6D09FEECDAE87B03BECA604B36</div><div>/tmpram/gost > /tmpram/openssl-111-pre9-dev/bin/openssl pkey -engine gost -pubout -text -in a.pem  </div><div>engine "gost" set.</div><div>-----BEGIN PUBLIC KEY-----</div><div>MGMwHAYGKoUDAgITMBIGByqFAwICIwEGByqFAwICHgEDQwAEQORQaJaqv4S10bz4</div><div>jw112dGlrtD+DyGR8TqkhmOvlJB46VUIbpBsEHs8nn0pXtzsIfEwgV8Oxo/QA0Ri</div><div>Qu5j7SU=</div><div>-----END PUBLIC KEY-----</div><div>Private key: 46150327559001221F9F1F9A50CD9E6A0CD5F5D0ADEA6439C1DB5E9EBD994BF6</div><div>Public key:</div><div>   X:789094AF6386A43AF191210FFED0AEA5D1D9750D8FF8BCD1B584BFAA966850E4</div><div>   Y:25ED63EE42624403D08FC60E5F8130F121ECDC5E297D9E3C7B106C906E0855E9</div><div>Parameter set: id-GostR3410-2001-CryptoPro-A-ParamSet</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 17 Aug 2018 at 18:15, Dmitry Belyavsky <<a href="mailto:beldmit@gmail.com">beldmit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I use my engine providing gost algorithms (<a href="https://github.com/gost-engine/engine" target="_blank">https://github.com/gost-engine/engine</a>). It seems not to have any relevant changes between 1.1.0 and current master, but the command </div><div><br></div><div><div>OPENSSL_CONF=engine.conf openssl pkey -pubout -text -in tmp.pem<br></div><div><br></div><div>works ok for 1.1.0 version and does not work for current master.</div><div>For the file a.pem both versions provide similar output.</div><div><br></div><div>engine.conf is minimal conf to load gost engine:</div><div>=============</div><div><div>openssl_conf = openssl_def</div><div>[openssl_def]</div><div>engines = engine_section</div><div><br></div><div>[engine_section]</div><div>gost = gost_section</div><div><br></div><div>[gost_section]</div><div>engine_id = gost</div><div>dynamic_path = /path/to/libgost.so</div><div>default_algorithms = ALL</div><div>CRYPT_PARAMS = id-Gost28147-89-CryptoPro-A-ParamSet</div></div><div>===============</div><div><div><br></div><div>I've found out that behavior of the function EC_POINT_get_affine_coordinates_GFp has changed between versions 1.1.0 and current master. </div><br class="m_-134861563985224729gmail-Apple-interchange-newline"></div><div>Also I found that pkey command ignores result of the calls to EVP_PKEY_print_public and EVP_PKEY_print_private.</div><div><br></div><div>Could you please clarify whether it's a bug in my engine or something  incompatible in openssl code?</div><div><br></div><div>Thank you!</div>-- <br><div dir="ltr" class="m_-134861563985224729gmail_signature">SY, Dmitry Belyavsky</div></div></div>
-- <br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
</blockquote></div>