providers: Set the size of EC signature on s390.
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Mon, 1 Aug 2022 15:42:05 +0000 (17:42 +0200)
committerTodd Short <todd.short@me.com>
Thu, 4 Aug 2022 13:23:15 +0000 (09:23 -0400)
commit08d420dd8edb9b6b5a0616171b30b5a53beb630b
tree12466a503e90ba9315e2f083633403e58690ff35
parentc69410a78666853454fafca071dea49fb4a4c515
providers: Set the size of EC signature on s390.

The s390x provides its custom implementation for the creation of the
ed448 and ed25519 signatures. Unfortunately it does not set the size.
Users that rely of this return parameter end up with wrong values and
will compare wrong sizes of signature.

Set the proper size of the returned signature on success. Set an error
if the signing operation fails.

Fixes: #18912
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/18928)

(cherry picked from commit bbedc052973b1c2fab7d7fb891d02aea393ff579)
providers/implementations/signature/eddsa_sig.c