<div dir="ltr">Hi,<br><div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 15, 2018 at 4:19 PM Dmitry Belyavsky <<a href="mailto:beldmit@gmail.com" target="_blank">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="auto">Well, you can use opaque pointer and own structure containing a flag and switch between native and custom implementations depending on it.<div dir="auto"><br></div><div dir="auto">I've tried it and it works</div></div></blockquote><div><br></div><div>We do store some state information in the method app_data, so singling out calls for our key is not hard. So, it would be necessary to check this in both sign_init() and sign() and call the default implementations of both as/when required, right? Will test it out.<br><br></div><div>Is there any plan to expose per-key EVP_PKEY_METHODs in the API?<br><br></div><div>Thanks,<br><br></div><div>Selva</div></div></div></div>