mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Guard tinycrypt files with MBEDTLS_USE_UECC
This commit is contained in:
parent
8557fc9220
commit
55427964b1
6 changed files with 12 additions and 1 deletions
|
|
@ -52,6 +52,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(MBEDTLS_USE_UECC)
|
||||
#include <tinycrypt/ecc.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
@ -937,5 +938,5 @@ int uECC_compute_public_key(const uint8_t *private_key, uint8_t *public_key,
|
|||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#endif /* MBEDTLS_USE_UECC */
|
||||
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@
|
|||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#if defined(MBEDTLS_USE_UECC)
|
||||
#include <tinycrypt/ecc.h>
|
||||
#include <tinycrypt/ecc_dh.h>
|
||||
#include <string.h>
|
||||
|
|
@ -195,3 +196,4 @@ clear_and_out:
|
|||
|
||||
return r;
|
||||
}
|
||||
#endif /* MBEDTLS_USE_UECC */
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(MBEDTLS_USE_UECC)
|
||||
#include <tinycrypt/ecc.h>
|
||||
#include <tinycrypt/ecc_dsa.h>
|
||||
|
||||
|
|
@ -292,3 +293,4 @@ int uECC_verify(const uint8_t *public_key, const uint8_t *message_hash,
|
|||
return (int)(uECC_vli_equal(rx, r, num_words) == 0);
|
||||
}
|
||||
|
||||
#endif /* MBEDTLS_USE_UECC */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue