summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorFlavio Santes <flavio.santes@intel.com>2016-07-25 10:36:06 -0500
committerAndrew Boie <andrew.p.boie@intel.com>2016-07-27 21:34:14 +0000
commite0d46124df0b0c5ad25a3fe5c15839cae05025b4 (patch)
tree01f7083a9ca892497b741bad786fe914353912e4 /ext
parente6ffc0ed289acf8aab11bc7b9aa5803d378e5159 (diff)
build/crypto: Update build system for tinycrypt 2.0
Modify tinycrypt/Kconfig and tinycrypt/Makefile to include new CTR_PRNG algorithm. Jira: ZEP-590 Change-Id: Ied0288126c326d229508c05df4a256dea29cf740 Signed-off-by: Flavio Santes <flavio.santes@intel.com>
Diffstat (limited to 'ext')
-rw-r--r--ext/lib/crypto/tinycrypt/Kconfig43
-rw-r--r--ext/lib/crypto/tinycrypt/Makefile5
2 files changed, 28 insertions, 20 deletions
diff --git a/ext/lib/crypto/tinycrypt/Kconfig b/ext/lib/crypto/tinycrypt/Kconfig
index 003a53f43..220660694 100644
--- a/ext/lib/crypto/tinycrypt/Kconfig
+++ b/ext/lib/crypto/tinycrypt/Kconfig
@@ -1,4 +1,4 @@
-# Kconfig - Cryptography primitive options for TinyCrypt
+# Kconfig - Cryptography primitive options for TinyCrypt version 2.0
#
# Copyright (c) 2015 Intel Corporation
@@ -21,7 +21,16 @@ config TINYCRYPT
prompt "Cryptography Support"
default n
help
- This option enables the TinyCrypt cryptography library.
+ This option enables the TinyCrypt cryptography library.
+
+config TINYCRYPT_CTR_PRNG
+ bool
+ prompt "PRNG in counter mode"
+ depends on TINYCRYPT
+ default n
+ help
+ This option enables support for the pseudo-random number
+ generator in counter mode.
config TINYCRYPT_SHA256
bool
@@ -29,8 +38,8 @@ config TINYCRYPT_SHA256
depends on TINYCRYPT
default n
help
- This option enables support for SHA-256
- hash function primitive.
+ This option enables support for SHA-256
+ hash function primitive.
config TINYCRYPT_SHA256_HMAC
bool
@@ -38,8 +47,8 @@ config TINYCRYPT_SHA256_HMAC
depends on TINYCRYPT_SHA256
default n
help
- This option enables support for HMAC using SHA-256
- message authentication code.
+ This option enables support for HMAC using SHA-256
+ message authentication code.
config TINYCRYPT_SHA256_HMAC_PRNG
bool
@@ -47,8 +56,8 @@ config TINYCRYPT_SHA256_HMAC_PRNG
depends on TINYCRYPT_SHA256_HMAC
default n
help
- This option enables support for pseudo-random number
- generator.
+ This option enables support for pseudo-random number
+ generator.
config TINYCRYPT_ECC_DH
bool
@@ -56,8 +65,8 @@ config TINYCRYPT_ECC_DH
depends on TINYCRYPT
default n
help
- This option enables support for the Elliptic curve
- Diffie-Hellman anonymous key agreement protocol.
+ This option enables support for the Elliptic curve
+ Diffie-Hellman anonymous key agreement protocol.
config TINYCRYPT_ECC_DSA
bool
@@ -65,8 +74,8 @@ config TINYCRYPT_ECC_DSA
depends on TINYCRYPT
default n
help
- This option enables support for the Elliptic Curve Digital
- Signature Algorithm (ECDSA).
+ This option enables support for the Elliptic Curve Digital
+ Signature Algorithm (ECDSA).
config TINYCRYPT_AES
bool
@@ -74,7 +83,7 @@ config TINYCRYPT_AES
depends on TINYCRYPT
default n
help
- This option enables support for AES-128 decrypt and encrypt.
+ This option enables support for AES-128 decrypt and encrypt.
config TINYCRYPT_AES_CBC
bool
@@ -82,7 +91,7 @@ config TINYCRYPT_AES_CBC
depends on TINYCRYPT_AES
default n
help
- This option enables support for AES-128 block cipher mode.
+ This option enables support for AES-128 block cipher mode.
config TINYCRYPT_AES_CTR
bool
@@ -90,7 +99,7 @@ config TINYCRYPT_AES_CTR
depends on TINYCRYPT_AES
default n
help
- This option enables support for AES-128 counter mode.
+ This option enables support for AES-128 counter mode.
config TINYCRYPT_AES_CCM
bool
@@ -98,7 +107,7 @@ config TINYCRYPT_AES_CCM
depends on TINYCRYPT_AES
default n
help
- This option enables support for AES-128 CCM mode.
+ This option enables support for AES-128 CCM mode.
config TINYCRYPT_AES_CMAC
bool
@@ -106,4 +115,4 @@ config TINYCRYPT_AES_CMAC
depends on TINYCRYPT_AES
default n
help
- This option enables support for AES-128 CMAC mode.
+ This option enables support for AES-128 CMAC mode.
diff --git a/ext/lib/crypto/tinycrypt/Makefile b/ext/lib/crypto/tinycrypt/Makefile
index bcfcde199..9b0142f69 100644
--- a/ext/lib/crypto/tinycrypt/Makefile
+++ b/ext/lib/crypto/tinycrypt/Makefile
@@ -3,13 +3,12 @@ subdir-ccflags-y +=-I$(srctree)/ext/lib/crypto/tinycrypt/include
obj-$(CONFIG_TINYCRYPT) := source/utils.o
obj-$(CONFIG_TINYCRYPT_ECC_DH) += source/ecc_dh.o source/ecc.o
obj-$(CONFIG_TINYCRYPT_ECC_DSA) += source/ecc_dsa.o source/ecc.o
-obj-$(CONFIG_TINYCRYPT_AES) += source/aes_decrypt.o
-obj-$(CONFIG_TINYCRYPT_AES) += source/aes_encrypt.o
+obj-$(CONFIG_TINYCRYPT_AES) += source/aes_decrypt.o source/aes_encrypt.o
obj-$(CONFIG_TINYCRYPT_AES_CBC) += source/cbc_mode.o
obj-$(CONFIG_TINYCRYPT_AES_CTR) += source/ctr_mode.o
obj-$(CONFIG_TINYCRYPT_AES_CCM) += source/ccm_mode.o
obj-$(CONFIG_TINYCRYPT_AES_CMAC) += source/cmac_mode.o
obj-$(CONFIG_TINYCRYPT_SHA256) += source/sha256.o
-obj-$(CONFIG_TINYCRYPT_SHA256) += source/utils.o
obj-$(CONFIG_TINYCRYPT_SHA256_HMAC) += source/hmac.o
obj-$(CONFIG_TINYCRYPT_SHA256_HMAC_PRNG) += source/hmac_prng.o
+obj-$(CONFIG_TINYCRYPT_CTR_PRNG) += source/ctr_prng.o