Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit d4a326a

Browse files
author
Constanza Heath
committed
Change includes to use predefined header file format for library
Signed-off-by: Constanza Heath <[email protected]>
1 parent d89a484 commit d4a326a

File tree

11 files changed

+21
-22
lines changed

11 files changed

+21
-22
lines changed

lib/aes_decrypt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
*
3535
*/
3636

37-
#include "aes.h"
38-
#include "utils.h"
37+
#include <aes.h>
38+
#include <utils.h>
3939

4040
#define ZERO_BYTE 0x00
4141
static const uint8_t inv_sbox[256] = {

lib/aes_encrypt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
*
3535
*/
3636

37-
#include "aes.h"
38-
#include "utils.h"
37+
#include <aes.h>
38+
#include <utils.h>
3939

4040
static const uint8_t sbox[256] = {
4141
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,

lib/cbc_mode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
*
3535
*/
3636

37-
#include "cbc_mode.h"
38-
#include "utils.h"
37+
#include <cbc_mode.h>
38+
#include <utils.h>
3939

4040
int32_t tc_cbc_mode_encrypt (
4141
uint8_t *out,

lib/cbc_mode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
#ifndef __TC_CBC_MODE_H__
7171
#define __TC_CBC_MODE_H__
7272

73-
#include "aes.h"
73+
#include <aes.h>
7474

7575
/**
7676
* @brief CBC encryption procedure

lib/ctr_mode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
*
3535
*/
3636

37-
#include "ctr_mode.h"
38-
#include "utils.h"
37+
#include <ctr_mode.h>
38+
#include <utils.h>
3939

4040
int32_t tc_ctr_mode (
4141
uint8_t *out,

lib/ctr_mode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#ifndef __TC_CTR_MODE_H__
6464
#define __TC_CTR_MODE_H__
6565

66-
#include "aes.h"
66+
#include <aes.h>
6767

6868
/**
6969
* @brief CTR mode encryption/decryption procedure.

lib/hmac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
*
3535
*/
3636

37-
#include "hmac.h"
38-
#include "utils.h"
37+
#include <hmac.h>
38+
#include <utils.h>
3939

4040
static void rekey (
4141
uint8_t *key, const uint8_t *new_key, uint32_t key_size) {

lib/hmac_prng.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
*
3535
*/
3636

37-
#include "hmac_prng.h"
38-
#include "hmac.h"
39-
#include "utils.h"
37+
#include <hmac_prng.h>
38+
#include <hmac.h>
39+
#include <utils.h>
4040

4141
/* min bytes in the seed string.
4242
* MIN_SLEN*8 must be at least the expected security level. */
@@ -139,7 +139,7 @@ int32_t tc_hmac_prng_reseed (
139139
seedlen > MAX_SLEN) {
140140
return TC_FAIL;
141141
}
142-
142+
143143
if (additional_input != (const uint8_t *) 0) {
144144
/* Abort if additional_input is provided but has inappropriate length */
145145
if (additionallen == 0 ||

lib/hmac_prng.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
#ifndef __TC_HMAC_PRNG_H__
6565
#define __TC_HMAC_PRNG_H__
6666

67-
#include "sha256.h"
68-
#include "hmac.h"
67+
#include <sha256.h>
68+
#include <hmac.h>
6969

7070
struct tc_hmac_prng_struct {
7171
struct tc_hmac_state_struct h; /* the HMAC instance for this PRNG */

lib/sha256.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
*
3535
*/
3636

37-
#include "sha256.h"
38-
#include "utils.h"
39-
#include <stdio.h>
37+
#include <sha256.h>
38+
#include <utils.h>
4039

4140
static void compress (uint32_t *iv, const uint8_t *data);
4241

0 commit comments

Comments
 (0)