tinycrypt: moving includes

Moving the includes to include/tinycrypt. This will help make it
clear when looking at source files where each header originated from.

Change-Id: I062cb3c6ecc5bc2ed2d28228d5926646b6b5f912
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-10-06 16:02:36 -07:00 committed by Anas Nashif
commit 9d506d0a26
21 changed files with 27 additions and 27 deletions

View file

@ -74,7 +74,7 @@
#ifndef __TC_CBC_MODE_H__ #ifndef __TC_CBC_MODE_H__
#define __TC_CBC_MODE_H__ #define __TC_CBC_MODE_H__
#include <aes.h> #include <tinycrypt/aes.h>
/** /**
* @brief CBC encryption procedure * @brief CBC encryption procedure

View file

@ -67,7 +67,7 @@
#ifndef __TC_CTR_MODE_H__ #ifndef __TC_CTR_MODE_H__
#define __TC_CTR_MODE_H__ #define __TC_CTR_MODE_H__
#include <aes.h> #include <tinycrypt/aes.h>
/** /**
* @brief CTR mode encryption/decryption procedure. * @brief CTR mode encryption/decryption procedure.

View file

@ -63,7 +63,7 @@
#ifndef __TC_HMAC_H__ #ifndef __TC_HMAC_H__
#define __TC_HMAC_H__ #define __TC_HMAC_H__
#include <sha256.h> #include <tinycrypt/sha256.h>
struct tc_hmac_state_struct { struct tc_hmac_state_struct {
/* the internal state required by h */ /* the internal state required by h */

View file

@ -68,8 +68,8 @@
#ifndef __TC_HMAC_PRNG_H__ #ifndef __TC_HMAC_PRNG_H__
#define __TC_HMAC_PRNG_H__ #define __TC_HMAC_PRNG_H__
#include <sha256.h> #include <tinycrypt/sha256.h>
#include <hmac.h> #include <tinycrypt/hmac.h>
struct tc_hmac_prng_struct { struct tc_hmac_prng_struct {
/* the HMAC instance for this PRNG */ /* the HMAC instance for this PRNG */

View file

@ -30,8 +30,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <aes.h> #include <tinycrypt/aes.h>
#include <utils.h> #include <tinycrypt/utils.h>
#define ZERO_BYTE 0x00 #define ZERO_BYTE 0x00

View file

@ -30,8 +30,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <aes.h> #include <tinycrypt/aes.h>
#include <utils.h> #include <tinycrypt/utils.h>
static const uint8_t sbox[256] = { static const uint8_t sbox[256] = {
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,

View file

@ -30,8 +30,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <cbc_mode.h> #include <tinycrypt/cbc_mode.h>
#include <utils.h> #include <tinycrypt/utils.h>
int32_t tc_cbc_mode_encrypt(uint8_t *out, uint32_t outlen, const uint8_t *in, int32_t tc_cbc_mode_encrypt(uint8_t *out, uint32_t outlen, const uint8_t *in,
uint32_t inlen, const uint8_t *iv, uint32_t inlen, const uint8_t *iv,

View file

@ -30,8 +30,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <ctr_mode.h> #include <tinycrypt/ctr_mode.h>
#include <utils.h> #include <tinycrypt/utils.h>
int32_t tc_ctr_mode(uint8_t *out, uint32_t outlen, const uint8_t *in, int32_t tc_ctr_mode(uint8_t *out, uint32_t outlen, const uint8_t *in,
uint32_t inlen, uint8_t *ctr, const TCAesKeySched_t sched) uint32_t inlen, uint8_t *ctr, const TCAesKeySched_t sched)

View file

@ -30,8 +30,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hmac.h> #include <tinycrypt/hmac.h>
#include <utils.h> #include <tinycrypt/utils.h>
static void rekey(uint8_t *key, const uint8_t *new_key, uint32_t key_size) static void rekey(uint8_t *key, const uint8_t *new_key, uint32_t key_size)
{ {

View file

@ -30,9 +30,9 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <hmac_prng.h> #include <tinycrypt/hmac_prng.h>
#include <hmac.h> #include <tinycrypt/hmac.h>
#include <utils.h> #include <tinycrypt/utils.h>
/* min bytes in the seed string. /* min bytes in the seed string.
* MIN_SLEN*8 must be at least the expected security level. */ * MIN_SLEN*8 must be at least the expected security level. */

View file

@ -30,8 +30,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <sha256.h> #include <tinycrypt/sha256.h>
#include <utils.h> #include <tinycrypt/utils.h>
static void compress(uint32_t *iv, const uint8_t *data); static void compress(uint32_t *iv, const uint8_t *data);

View file

@ -30,7 +30,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <utils.h> #include <tinycrypt/utils.h>
#include <string.h> #include <string.h>

View file

@ -42,7 +42,7 @@
*/ */
#include <test_utils.h> #include <test_utils.h>
#include <aes.h> #include <tinycrypt/aes.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>

View file

@ -37,7 +37,7 @@
- AES128 CBC mode encryption SP 800-38a tests - AES128 CBC mode encryption SP 800-38a tests
*/ */
#include <cbc_mode.h> #include <tinycrypt/cbc_mode.h>
#include "test_utils.h" #include "test_utils.h"
#include <stdlib.h> #include <stdlib.h>

View file

@ -38,7 +38,7 @@
- AES128 CTR mode encryption SP 800-38a tests - AES128 CTR mode encryption SP 800-38a tests
*/ */
#include <ctr_mode.h> #include <tinycrypt/ctr_mode.h>
#include <test_utils.h> #include <test_utils.h>
#include <stdio.h> #include <stdio.h>

View file

@ -39,7 +39,7 @@
*/ */
#include <test_utils.h> #include <test_utils.h>
#include <hmac.h> #include <tinycrypt/hmac.h>
uint32_t do_hmac_test(TCHmacState_t h, uint32_t testnum, const uint8_t *data, uint32_t do_hmac_test(TCHmacState_t h, uint32_t testnum, const uint8_t *data,
size_t datalen, const uint8_t *expected, size_t datalen, const uint8_t *expected,

View file

@ -44,7 +44,7 @@
#include <drivers/system_timer.h> #include <drivers/system_timer.h>
#include <stdio.h> #include <stdio.h>
#include <hmac_prng.h> #include <tinycrypt/hmac_prng.h>
/* /*
* Main task to test AES * Main task to test AES

View file

@ -38,7 +38,7 @@
- NIST SHA256 test vectors - NIST SHA256 test vectors
*/ */
#include <sha256.h> #include <tinycrypt/sha256.h>
#include <test_utils.h> #include <test_utils.h>
#include <stdio.h> #include <stdio.h>