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: Ic79978da286f9c288868074a69262d89488925b8
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-10-12 10:15:35 -07:00 committed by Anas Nashif
commit 31ff5ad01f
22 changed files with 29 additions and 29 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -30,8 +30,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <ctr_mode.h>
#include <utils.h>
#include <tinycrypt/ctr_mode.h>
#include <tinycrypt/utils.h>
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)

View file

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

View file

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

View file

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

View file

@ -47,8 +47,8 @@
#include <bluetooth/bluetooth.h>
#if defined(CONFIG_TINYCRYPT_AES)
#include <aes.h>
#include <utils.h>
#include <tinycrypt/aes.h>
#include <tinycrypt/utils.h>
#endif
#include "hci_core.h"

View file

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

View file

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

View file

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

View file

@ -39,7 +39,7 @@
*/
#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,
size_t datalen, const uint8_t *expected,

View file

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

View file

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