mirror of https://github.com/wolfSSL/wolfssl
Merge pull request #1416 from dgarske/fix_pluton_ecc_sign
Fix for Pluton ECC sign (2nd try)
This commit is contained in:
commit
71ba87bb4d
|
@ -3588,12 +3588,15 @@ int wc_ecc_sign_hash(const byte* in, word32 inlen, byte* out, word32 *outlen,
|
|||
return BAD_COND_E;
|
||||
}
|
||||
#elif defined(PLUTON_CRYPTO_ECC)
|
||||
{
|
||||
/* perform ECC sign */
|
||||
err = Crypto_EccSign(in, inlen, out, outlen);
|
||||
word32 raw_sig_size = *outlen;
|
||||
err = Crypto_EccSign(in, inlen, out, &raw_sig_size);
|
||||
if (err != CRYPTO_RES_SUCCESS ||
|
||||
*outlen != ECC_MAX_CRYPTO_HW_SIZE*2) {
|
||||
raw_sig_size != ECC_MAX_CRYPTO_HW_SIZE*2) {
|
||||
return BAD_COND_E;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Load R and S */
|
||||
|
|
Loading…
Reference in New Issue