aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorConstanza Heath <[email protected]>2015-08-28 12:52:03 -0700
committerConstanza Heath <[email protected]>2015-08-28 12:52:03 -0700
commit202b462c58dfc7b052826418e299e9f426ad4022 (patch)
treebac0515954f1c00879e4b3cd319e0d58996b4823 /lib
parente12df0b674e2948ee924482cd424b76a19e0d2f7 (diff)
Move header namespace macros under license comments
Signed-off-by: Constanza Heath <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/aes.h5
-rw-r--r--lib/cbc_mode.h5
-rw-r--r--lib/ctr_mode.h5
-rw-r--r--lib/hmac.h5
-rw-r--r--lib/hmac_prng.h5
-rw-r--r--lib/sha256.h5
-rw-r--r--lib/utils.h5
7 files changed, 21 insertions, 14 deletions
diff --git a/lib/aes.h b/lib/aes.h
index 65bf07d..3f312c4 100644
--- a/lib/aes.h
+++ b/lib/aes.h
@@ -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"
/*
diff --git a/lib/hmac.h b/lib/hmac.h
index d8ac4dc..8d43934 100644
--- a/lib/hmac.h
+++ b/lib/hmac.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>
/*