Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit 60bd297

Browse files
author
Constanza Heath
committed
Updating TinyCrypt v2 primitives to add ECC, CCM, and CMAC.
Signed-off-by: Constanza Heath <[email protected]>
1 parent b3b3992 commit 60bd297

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3942
-1313
lines changed

config.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
################################################################################
88

99
CC=gcc
10-
CFLAGS = -Os -std=c99 -Wall -Wextra -I../include -I../lib
11-
VPATH = ../include ../lib
10+
CFLAGS = -Os -std=c99 -Wall -Wextra -I../lib/include/ -I../lib/source/ -I../tests/include/
11+
VPATH = ../lib/include/tinycrypt/ ../lib/source/
1212

1313
export CC
1414
export CFLAGS

lib/Makefile

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,22 @@
66
#
77
################################################################################
88

9-
include ../Makefile.conf
9+
include ../config.mk
1010

1111
# Edit the OBJS content to add/remove primitives needed from TinyCrypt library:
1212
OBJS = utils.o \
1313
aes_decrypt.o \
1414
aes_encrypt.o \
1515
cbc_mode.o \
1616
ctr_mode.o \
17+
ccm_mode.o \
18+
cmac_mode.o \
1719
hmac.o \
1820
hmac_prng.o \
1921
sha256.o \
22+
ecc.o \
23+
ecc_dh.o \
24+
ecc_dsa.o
2025

2126
all: $(OBJS)
2227

@@ -26,10 +31,15 @@ clean:
2631
# Dependencies
2732
aes_decrypt.o: aes_decrypt.c aes.h utils.o
2833
aes_encrypt.o: aes_encrypt.c aes.h utils.o
29-
cbc_mode.o: cbc_mode.c cbc_mode.h utils.o
30-
ctr_mode.o: ctr_mode.c ctr_mode.h utils.o
31-
hmac.o: hmac.c hmac.h utils.o
32-
hmac_prng.o: hmac_prng.c hmac_prng.h utils.o
33-
sha256.o: sha256.c sha256.h utils.o
34-
utils.o: utils.c utils.h
34+
cbc_mode.o: cbc_mode.c cbc_mode.h utils.o
35+
ctr_mode.o: ctr_mode.c ctr_mode.h utils.o
36+
ccm_mode.o: ccm_mode.c ccm_mode.h utils.o
37+
cmac_mode.o: ccm_mode.c ccm_mode.h utils.o
38+
hmac.o: hmac.c hmac.h utils.o
39+
hmac_prng.o: hmac_prng.c hmac_prng.h utils.o
40+
sha256.o: sha256.c sha256.h utils.o
41+
ecc_dh.o: ecc_dh.c ecc_dh.h ecc.o
42+
ecc_dsa.o: ecc_dsa.c ecc_dsa.h ecc.o
43+
ecc.o: ecc.c ecc.h
44+
utils.o: utils.c utils.h
3545

lib/aes_decrypt.c

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)