crypto-ec: fix output for EC signature

The size of the signature isn't getting set correctly.  Apparently
this doesn't matter for gnutls, but it does for the openssl pkcs11
engine, which otherwise gets the wrong size and thus the wrong format
for the signature.  Fix by always setting sig_len regardless of
whether we're signing or not.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 file changed