Make compiler happy when MBEDTLS_USE_UECC disabled

This commit is contained in:
Jarno Lamsa 2019-04-29 14:29:52 +03:00
parent 00c0aa01b4
commit 46132207f8
3 changed files with 6 additions and 2 deletions

View File

@ -937,6 +937,7 @@ int uECC_compute_public_key(const uint8_t *private_key, uint8_t *public_key,
curve->num_bytes, curve->num_bytes, _public + curve->num_words);
return 1;
}
#else
typedef int mbedtls_dummy_uecc_def;
#endif /* MBEDTLS_USE_UECC */

View File

@ -196,4 +196,6 @@ clear_and_out:
return r;
}
#else
typedef int mbedtls_dummy_uecc_def;
#endif /* MBEDTLS_USE_UECC */

View File

@ -292,5 +292,6 @@ int uECC_verify(const uint8_t *public_key, const uint8_t *message_hash,
/* Accept only if v == r. */
return (int)(uECC_vli_equal(rx, r, num_words) == 0);
}
#else
typedef int mbedtls_dummy_uecc_def;
#endif /* MBEDTLS_USE_UECC */