summaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-01-19 15:37:34 +0000
committerMatt Caswell <matt@openssl.org>2018-02-20 12:59:30 +0000
commit0cdcdacc337005e08a906b2e07d4e44e3ee48138 (patch)
treef5b6da8c6e2498e153f1b0d9c050479dfa5427e6 /crypto/ec
parentdd03fd7e3ada3a9ebdb83fc5e4164b2a404e6c62 (diff)
Fix AppVeyor failure in eddsa.c
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/5105)
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/curve448/eddsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/curve448/eddsa.c b/crypto/ec/curve448/eddsa.c
index 5c67fe22e0..f2d9839c63 100644
--- a/crypto/ec/curve448/eddsa.c
+++ b/crypto/ec/curve448/eddsa.c
@@ -335,7 +335,7 @@ int ED448_verify(const uint8_t *message, size_t message_len,
const uint8_t *context, size_t context_len)
{
return c448_ed448_verify(signature, public_key, message, message_len, 0,
- context, context_len) == C448_SUCCESS;
+ context, (uint8_t)context_len) == C448_SUCCESS;
}
int ED448ph_sign(uint8_t *out_sig, const uint8_t hash[64],
@@ -352,7 +352,7 @@ int ED448ph_verify(const uint8_t hash[64], const uint8_t signature[114],
size_t context_len)
{
return c448_ed448_verify_prehash(signature, public_key, hash, context,
- context_len) == C448_SUCCESS;
+ (uint8_t)context_len) == C448_SUCCESS;
}
int ED448_public_from_private(uint8_t out_public_key[57],