Skip to content

Commit

Permalink
minicrypt: add AESCCM mechanism and common definitions header
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Harvey committed May 1, 2014
1 parent 81ab6f8 commit eeecb84
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 173 deletions.
1 change: 1 addition & 0 deletions host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ test: $(TARGETS)
./aes_mini_test
./aes_mini_enc_test
./aes_mini_enc128_test
./aesccm_mini_test
10 changes: 9 additions & 1 deletion src/aes_mini.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
* AESMINI_ENCRYPT_ONLY to remove support for the AES decryption primitive
*/

#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif

#include "minicrypt.h"

#define AESMINI_BLOCK_SIZE 16

Expand Down Expand Up @@ -53,4 +57,8 @@ extern void AESMini_ECB_Encrypt(AESMini_ctx *ctx, const uint8_t *plain, uint8_t
extern void AESMini_ECB_Decrypt(AESMini_ctx *ctx, const uint8_t *cipher, uint8_t *plain);
#endif

#ifdef __cplusplus
}
#endif

#endif
Loading

0 comments on commit eeecb84

Please sign in to comment.