Make crypto lib naming more consistent

This commit is contained in:
2020-02-27 15:59:29 -05:00
parent 8cca9a2930
commit aff4be3a65
10 changed files with 19 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
#include "bootrom_type.h"
#ifdef CRYPTO_DEV
#ifdef DEV_CRYPTO
#include "dev_util.h"
PAYLOAD_SECTION
@@ -17,7 +17,7 @@ void sub_bytes(unsigned char block[16], struct aes_constants *c)
}
}
#ifdef CRYPTO_DEV
#ifdef DEV_CRYPTO
PAYLOAD_SECTION
#endif
void shift_rows(unsigned char block[16])
@@ -44,7 +44,7 @@ void shift_rows(unsigned char block[16])
block[0x7] = temp1;
}
#ifdef CRYPTO_DEV
#ifdef DEV_CRYPTO
PAYLOAD_SECTION
#endif
void mix_cols(unsigned char block[16], struct aes_constants *c)
@@ -67,7 +67,7 @@ void mix_cols(unsigned char block[16], struct aes_constants *c)
}
}
#ifdef CRYPTO_DEV
#ifdef DEV_CRYPTO
PAYLOAD_SECTION
#endif
void add_key(unsigned char block[16], unsigned char key[16])
@@ -79,7 +79,7 @@ void add_key(unsigned char block[16], unsigned char key[16])
}
}
#ifdef CRYPTO_DEV
#ifdef DEV_CRYPTO
PAYLOAD_SECTION
#endif
void expand_key(unsigned char key[16], unsigned char key_sched[176], int n,
@@ -120,7 +120,7 @@ void expand_key(unsigned char key[16], unsigned char key_sched[176], int n,
}
}
#ifdef CRYPTO_DEV
#ifdef DEV_CRYPTO
PAYLOAD_SECTION
#endif
void aes128_encrypt_ecb(unsigned char *msg, unsigned int msg_len,