forked from wolfSSL/wolfssl
@@ -112,6 +112,8 @@ int wc_ed25519_sign_msg(const byte* in, word32 inlen, byte* out,
|
|||||||
/* step 1: create nonce to use where nonce is r in
|
/* step 1: create nonce to use where nonce is r in
|
||||||
r = H(h_b, ... ,h_2b-1,M) */
|
r = H(h_b, ... ,h_2b-1,M) */
|
||||||
ret = wc_Sha512Hash(key->k, ED25519_KEY_SIZE, az);
|
ret = wc_Sha512Hash(key->k, ED25519_KEY_SIZE, az);
|
||||||
|
if (ret != 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
/* apply clamp */
|
/* apply clamp */
|
||||||
az[0] &= 248;
|
az[0] &= 248;
|
||||||
|
Reference in New Issue
Block a user