diff options
author | Constanza Heath <[email protected]> | 2015-08-28 12:52:03 -0700 |
---|---|---|
committer | Constanza Heath <[email protected]> | 2015-08-28 12:52:03 -0700 |
commit | 202b462c58dfc7b052826418e299e9f426ad4022 (patch) | |
tree | bac0515954f1c00879e4b3cd319e0d58996b4823 /lib | |
parent | e12df0b674e2948ee924482cd424b76a19e0d2f7 (diff) |
Move header namespace macros under license comments
Signed-off-by: Constanza Heath <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/aes.h | 5 | ||||
-rw-r--r-- | lib/cbc_mode.h | 5 | ||||
-rw-r--r-- | lib/ctr_mode.h | 5 | ||||
-rw-r--r-- | lib/hmac.h | 5 | ||||
-rw-r--r-- | lib/hmac_prng.h | 5 | ||||
-rw-r--r-- | lib/sha256.h | 5 | ||||
-rw-r--r-- | lib/utils.h | 5 |
7 files changed, 21 insertions, 14 deletions
@@ -1,6 +1,4 @@ /* aes.h - TinyCrypt interface to an AES-128 implementation. */ -#ifndef __AES_H__ -#define __AES_H__ /* * Copyright (C) 2015 by Intel Corporation, All Rights Reserved. @@ -44,6 +42,9 @@ * 2) call aes_encrypt/decrypt to process the data. */ +#ifndef __AES_H__ +#define __AES_H__ + #include<stdint.h> #define Nb (4) // number of columns (32-bit words) comprising the state diff --git a/lib/cbc_mode.h b/lib/cbc_mode.h index 5b4d149..fb27ca7 100644 --- a/lib/cbc_mode.h +++ b/lib/cbc_mode.h @@ -1,6 +1,4 @@ /* cbc_mode.h - TinyCrypt interface to a CBC mode implementation */ -#ifndef __CBC_MODE_H__ -#define __CBC_MODE_H__ /* * Copyright (C) 2015 by Intel Corporation, All Rights Reserved. @@ -69,6 +67,9 @@ * */ +#ifndef __CBC_MODE_H__ +#define __CBC_MODE_H__ + #include "aes.h" /* diff --git a/lib/ctr_mode.h b/lib/ctr_mode.h index ab7cc29..458cd8d 100644 --- a/lib/ctr_mode.h +++ b/lib/ctr_mode.h @@ -1,6 +1,4 @@ /* ctr_mode.h - TinyCrypt interface to CTR mode*/ -#ifndef __CTR_MODE_H__ -#define __CTR_MODE_H__ /* * Copyright (C) 2015 by Intel Corporation, All Rights Reserved. @@ -62,6 +60,9 @@ * */ +#ifndef __CTR_MODE_H__ +#define __CTR_MODE_H__ + #include "aes.h" /* @@ -1,6 +1,4 @@ /* hmac.h - TinyCrypt interface to an HMAC implementation */ -#ifndef __HMAC_H__ -#define __HMAC_H__ /* * Copyright (C) 2015 by Intel Corporation, All Rights Reserved. @@ -58,6 +56,9 @@ * 4) call hmac_final to out put the tag. */ +#ifndef __HMAC_H__ +#define __HMAC_H__ + #include "sha256.h" struct hmac_state_struct { diff --git a/lib/hmac_prng.h b/lib/hmac_prng.h index 049ed9b..b843e15 100644 --- a/lib/hmac_prng.h +++ b/lib/hmac_prng.h @@ -1,6 +1,4 @@ /* hmac_prng.h - TinyCrypt interface to an HMAC-PRNG implementation. */ -#ifndef __HMAC_PRNG_H__ -#define __HMAC_PRNG_H__ /* * Copyright (C) 2015 by Intel Corporation, All Rights Reserved. @@ -63,6 +61,9 @@ * 3) call hmac_prng_generate to out put the pseudo-random data. */ +#ifndef __HMAC_PRNG_H__ +#define __HMAC_PRNG_H__ + #include "sha256.h" #include "hmac.h" diff --git a/lib/sha256.h b/lib/sha256.h index e695055..9d6a4d5 100644 --- a/lib/sha256.h +++ b/lib/sha256.h @@ -1,6 +1,4 @@ /* sha256.h - TinyCrypt interface to a SHA-256 implementation. */ -#ifndef __SHA256_H__ -#define __SHA256_H__ /* * Copyright (C) 2015 by Intel Corporation, All Rights Reserved. @@ -52,6 +50,9 @@ * operation. */ +#ifndef __SHA256_H__ +#define __SHA256_H__ + #include <stddef.h> #include <stdint.h> diff --git a/lib/utils.h b/lib/utils.h index c5aab48..9a8ad25 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -1,6 +1,4 @@ /* utils.h - TinyCrypt interface to platform-dependent run-time operations */ -#ifndef __UTILS_H__ -#define __UTILS_H__ /* * Copyright (C) 2015 by Intel Corporation, All Rights Reserved. @@ -34,6 +32,9 @@ * */ +#ifndef __UTILS_H__ +#define __UTILS_H__ + #include <stdint.h> /* |