openssl pkeyutl not truncating input with DSA key

Viewed 134

I am trying to sign a file directly (not computing any hashes) with openssl pkeyutl using a DSA key, and the man page says that the input should be truncated in case it is larger than the expected hash size. However, when I run the command

$ openssl pkeyutl -sign -inkey myDSAkey.pem -in file -out file.sign

i get the following message after entering my password :

Public Key operation error

The error does not happen with files smaller than 20 bytes. I am running OpenSSL 1.1.0g

Thanks in advance for your help!

0 Answers
Related