mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
Guard tinycrypt files with MBEDTLS_USE_UECC
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(MBEDTLS_USE_UECC)
|
||||
#ifndef __TC_UECC_H__
|
||||
#define __TC_UECC_H__
|
||||
|
||||
@@ -543,3 +544,4 @@ void uECC_vli_bytesToNative(unsigned int *native, const uint8_t *bytes,
|
||||
#endif
|
||||
|
||||
#endif /* __TC_UECC_H__ */
|
||||
#endif /* MBEDTLS_USE_UECC */
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
* Security: The curve NIST p-256 provides approximately 128 bits of security.
|
||||
*/
|
||||
|
||||
#if defined(MBEDTLS_USE_UECC)
|
||||
#ifndef __TC_ECC_DH_H__
|
||||
#define __TC_ECC_DH_H__
|
||||
|
||||
@@ -129,3 +130,4 @@ int uECC_shared_secret(const uint8_t *p_public_key, const uint8_t *p_private_key
|
||||
#endif
|
||||
|
||||
#endif /* __TC_ECC_DH_H__ */
|
||||
#endif /* MBEDTLS_USE_UECC */
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
* the signer's public key and the signature values (r and s).
|
||||
*/
|
||||
|
||||
#if defined(MBEDTLS_USE_UECC)
|
||||
#ifndef __TC_ECC_DSA_H__
|
||||
#define __TC_ECC_DSA_H__
|
||||
|
||||
@@ -137,3 +138,4 @@ int uECC_verify(const uint8_t *p_public_key, const uint8_t *p_message_hash,
|
||||
#endif
|
||||
|
||||
#endif /* __TC_ECC_DSA_H__ */
|
||||
#endif /* MBEDTLS_USE_UECC */
|
||||
|
||||
Reference in New Issue
Block a user