mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Formatting tweak based on review feedback
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/5105)
This commit is contained in:
parent
756b5af71c
commit
e411822318
@ -274,12 +274,12 @@ c448_error_t c448_ed448_verify(
|
||||
uint8_t challenge[2 * EDDSA_448_PRIVATE_BYTES];
|
||||
|
||||
if (hashctx == NULL
|
||||
|| !hash_init_with_dom(hashctx, prehashed, 0, context, context_len)
|
||||
|| !EVP_DigestUpdate(hashctx, signature,
|
||||
EDDSA_448_PUBLIC_BYTES)
|
||||
|| !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES)
|
||||
|| !EVP_DigestUpdate(hashctx, message, message_len)
|
||||
|| !EVP_DigestFinalXOF(hashctx, challenge, sizeof(challenge))) {
|
||||
|| !hash_init_with_dom(hashctx, prehashed, 0, context,
|
||||
context_len)
|
||||
|| !EVP_DigestUpdate(hashctx, signature, EDDSA_448_PUBLIC_BYTES)
|
||||
|| !EVP_DigestUpdate(hashctx, pubkey, EDDSA_448_PUBLIC_BYTES)
|
||||
|| !EVP_DigestUpdate(hashctx, message, message_len)
|
||||
|| !EVP_DigestFinalXOF(hashctx, challenge, sizeof(challenge))) {
|
||||
EVP_MD_CTX_free(hashctx);
|
||||
return C448_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user