mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
Merge pull request #710 from JacobBarthelmeh/staticmemory
pass heap hint to temporary public ECC key
This commit is contained in:
@@ -3160,8 +3160,7 @@ int wc_ecc_sign_hash_ex(const byte* in, word32 inlen, WC_RNG* rng,
|
|||||||
if (err == MP_OKAY) {
|
if (err == MP_OKAY) {
|
||||||
int loop_check = 0;
|
int loop_check = 0;
|
||||||
ecc_key pubkey;
|
ecc_key pubkey;
|
||||||
|
if (wc_ecc_init_ex(&pubkey, key->heap, INVALID_DEVID) == MP_OKAY) {
|
||||||
if (wc_ecc_init(&pubkey) == MP_OKAY) {
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (++loop_check > 64) {
|
if (++loop_check > 64) {
|
||||||
err = RNG_FAILURE_E;
|
err = RNG_FAILURE_E;
|
||||||
|
Reference in New Issue
Block a user