Revert "tinycrypt: moving includes"
This commit breaks the sanitychecks This reverts commit 93fa1053b21efe3d030ea060a31b80d6008d5bfd. Change-Id: Ia52092e845c33234817a1cb27cd1f17064c65e7e Signed-off-by: Anas Nashif <nashif@linux.intel.com>
This commit is contained in:
parent
cd6e315167
commit
93f06fad7d
21 changed files with 27 additions and 27 deletions
|
@ -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 <tinycrypt/aes.h>
|
#include <aes.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CBC encryption procedure
|
* @brief CBC encryption procedure
|
|
@ -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 <tinycrypt/aes.h>
|
#include <aes.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CTR mode encryption/decryption procedure.
|
* @brief CTR mode encryption/decryption procedure.
|
|
@ -63,7 +63,7 @@
|
||||||
#ifndef __TC_HMAC_H__
|
#ifndef __TC_HMAC_H__
|
||||||
#define __TC_HMAC_H__
|
#define __TC_HMAC_H__
|
||||||
|
|
||||||
#include <tinycrypt/sha256.h>
|
#include <sha256.h>
|
||||||
|
|
||||||
struct tc_hmac_state_struct {
|
struct tc_hmac_state_struct {
|
||||||
/* the internal state required by h */
|
/* the internal state required by h */
|
|
@ -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 <tinycrypt/sha256.h>
|
#include <sha256.h>
|
||||||
#include <tinycrypt/hmac.h>
|
#include <hmac.h>
|
||||||
|
|
||||||
struct tc_hmac_prng_struct {
|
struct tc_hmac_prng_struct {
|
||||||
/* the HMAC instance for this PRNG */
|
/* the HMAC instance for this PRNG */
|
|
@ -30,8 +30,8 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/aes.h>
|
#include <aes.h>
|
||||||
#include <tinycrypt/utils.h>
|
#include <utils.h>
|
||||||
|
|
||||||
#define ZERO_BYTE 0x00
|
#define ZERO_BYTE 0x00
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/aes.h>
|
#include <aes.h>
|
||||||
#include <tinycrypt/utils.h>
|
#include <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,
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/cbc_mode.h>
|
#include <cbc_mode.h>
|
||||||
#include <tinycrypt/utils.h>
|
#include <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,
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/ctr_mode.h>
|
#include <ctr_mode.h>
|
||||||
#include <tinycrypt/utils.h>
|
#include <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)
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/hmac.h>
|
#include <hmac.h>
|
||||||
#include <tinycrypt/utils.h>
|
#include <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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,9 +30,9 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/hmac_prng.h>
|
#include <hmac_prng.h>
|
||||||
#include <tinycrypt/hmac.h>
|
#include <hmac.h>
|
||||||
#include <tinycrypt/utils.h>
|
#include <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. */
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/sha256.h>
|
#include <sha256.h>
|
||||||
#include <tinycrypt/utils.h>
|
#include <utils.h>
|
||||||
|
|
||||||
static void compress(uint32_t *iv, const uint8_t *data);
|
static void compress(uint32_t *iv, const uint8_t *data);
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/utils.h>
|
#include <utils.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <test_utils.h>
|
#include <test_utils.h>
|
||||||
#include <tinycrypt/aes.h>
|
#include <aes.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
- AES128 CBC mode encryption SP 800-38a tests
|
- AES128 CBC mode encryption SP 800-38a tests
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/cbc_mode.h>
|
#include <cbc_mode.h>
|
||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
- AES128 CTR mode encryption SP 800-38a tests
|
- AES128 CTR mode encryption SP 800-38a tests
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/ctr_mode.h>
|
#include <ctr_mode.h>
|
||||||
#include <test_utils.h>
|
#include <test_utils.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <test_utils.h>
|
#include <test_utils.h>
|
||||||
#include <tinycrypt/hmac.h>
|
#include <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,
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <tinycrypt/hmac_prng.h>
|
#include <hmac_prng.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Main task to test AES
|
* Main task to test AES
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
- NIST SHA256 test vectors
|
- NIST SHA256 test vectors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tinycrypt/sha256.h>
|
#include <sha256.h>
|
||||||
#include <test_utils.h>
|
#include <test_utils.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue