Guard tinycrypt files with MBEDTLS_USE_UECC
diff --git a/include/tinycrypt/ecc.h b/include/tinycrypt/ecc.h
index 8abc949..ede7544 100644
--- a/include/tinycrypt/ecc.h
+++ b/include/tinycrypt/ecc.h
@@ -68,6 +68,7 @@
*
*/
+#if defined(MBEDTLS_USE_UECC)
#ifndef __TC_UECC_H__
#define __TC_UECC_H__
@@ -543,3 +544,4 @@
#endif
#endif /* __TC_UECC_H__ */
+#endif /* MBEDTLS_USE_UECC */
diff --git a/include/tinycrypt/ecc_dh.h b/include/tinycrypt/ecc_dh.h
index b828e19..18a4fd2 100644
--- a/include/tinycrypt/ecc_dh.h
+++ b/include/tinycrypt/ecc_dh.h
@@ -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 @@
#endif
#endif /* __TC_ECC_DH_H__ */
+#endif /* MBEDTLS_USE_UECC */
diff --git a/include/tinycrypt/ecc_dsa.h b/include/tinycrypt/ecc_dsa.h
index aca00bc..8065340 100644
--- a/include/tinycrypt/ecc_dsa.h
+++ b/include/tinycrypt/ecc_dsa.h
@@ -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 @@
#endif
#endif /* __TC_ECC_DSA_H__ */
+#endif /* MBEDTLS_USE_UECC */