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

Commit

Permalink
Updating TinyCrypt v2 primitives to add ECC, CCM, and CMAC.
Browse files Browse the repository at this point in the history
Signed-off-by: Constanza Heath <[email protected]>
  • Loading branch information
Constanza Heath committed Feb 17, 2016
1 parent b3b3992 commit 60bd297
Show file tree
Hide file tree
Showing 44 changed files with 3,942 additions and 1,313 deletions.
4 changes: 2 additions & 2 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
################################################################################

CC=gcc
CFLAGS = -Os -std=c99 -Wall -Wextra -I../include -I../lib
VPATH = ../include ../lib
CFLAGS = -Os -std=c99 -Wall -Wextra -I../lib/include/ -I../lib/source/ -I../tests/include/
VPATH = ../lib/include/tinycrypt/ ../lib/source/

export CC
export CFLAGS
Expand Down
24 changes: 17 additions & 7 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@
#
################################################################################

include ../Makefile.conf
include ../config.mk

# Edit the OBJS content to add/remove primitives needed from TinyCrypt library:
OBJS = utils.o \
aes_decrypt.o \
aes_encrypt.o \
cbc_mode.o \
ctr_mode.o \
ccm_mode.o \
cmac_mode.o \
hmac.o \
hmac_prng.o \
sha256.o \
ecc.o \
ecc_dh.o \
ecc_dsa.o

all: $(OBJS)

Expand All @@ -26,10 +31,15 @@ clean:
# Dependencies
aes_decrypt.o: aes_decrypt.c aes.h utils.o
aes_encrypt.o: aes_encrypt.c aes.h utils.o
cbc_mode.o: cbc_mode.c cbc_mode.h utils.o
ctr_mode.o: ctr_mode.c ctr_mode.h utils.o
hmac.o: hmac.c hmac.h utils.o
hmac_prng.o: hmac_prng.c hmac_prng.h utils.o
sha256.o: sha256.c sha256.h utils.o
utils.o: utils.c utils.h
cbc_mode.o: cbc_mode.c cbc_mode.h utils.o
ctr_mode.o: ctr_mode.c ctr_mode.h utils.o
ccm_mode.o: ccm_mode.c ccm_mode.h utils.o
cmac_mode.o: ccm_mode.c ccm_mode.h utils.o
hmac.o: hmac.c hmac.h utils.o
hmac_prng.o: hmac_prng.c hmac_prng.h utils.o
sha256.o: sha256.c sha256.h utils.o
ecc_dh.o: ecc_dh.c ecc_dh.h ecc.o
ecc_dsa.o: ecc_dsa.c ecc_dsa.h ecc.o
ecc.o: ecc.c ecc.h
utils.o: utils.c utils.h

162 changes: 0 additions & 162 deletions lib/aes_decrypt.c

This file was deleted.

Loading

0 comments on commit 60bd297

Please sign in to comment.