[openssl-dev] Variable length of digest

Dmitry Belyavsky beldmit at gmail.com
Thu Dec 24 18:12:07 UTC 2015


Hello Victor,

On Thu, Dec 24, 2015 at 5:57 PM, Victor Wagner <vitus at wagner.pp.ru> wrote:

> On Thu, 24 Dec 2015 11:24:37 +0300
> Dmitry Belyavsky <beldmit at gmail.com> wrote:
>
>
> >
> > If you try to change the output length via the -macopt option of the
> > dgst command, you'll see that the text output will be 4 bytes.
>
> It is misfeature of dgst command. You have to use -signopt, not -macopt,
> because dgst command doesn't keep EVP_PKEY_CTX during all the MAC
> operation.
>

Thank you! It works.

-- 
SY, Dmitry Belyavsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20151224/d31389a6/attachment.html>


More information about the openssl-dev mailing list