mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:05:42 +01:00
Make compiler happy when MBEDTLS_USE_UECC disabled
This commit is contained in:
parent
00c0aa01b4
commit
46132207f8
@ -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 */
|
||||
|
||||
|
@ -196,4 +196,6 @@ clear_and_out:
|
||||
|
||||
return r;
|
||||
}
|
||||
#else
|
||||
typedef int mbedtls_dummy_uecc_def;
|
||||
#endif /* MBEDTLS_USE_UECC */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user