From 13d398480df62e14e60cb24da3ff27fa8996aa81 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sat, 2 Dec 2023 22:09:00 -0500 Subject: [PATCH] OCD file cleanup; --- src/AESCrypto.cpp | 3 ++- src/AESCrypto.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/AESCrypto.cpp b/src/AESCrypto.cpp index b6bf4459..eac87771 100644 --- a/src/AESCrypto.cpp +++ b/src/AESCrypto.cpp @@ -467,7 +467,8 @@ uint8_t *AES::decryptCFB(const uint8_t in[], uint32_t inLen, const uint8_t key[] /// /// /// -void AES::subBytes(uint8_t state[4][AES_NB]) { +void AES::subBytes(uint8_t state[4][AES_NB]) +{ uint8_t t; for (uint32_t i = 0; i < 4; i++) { for (uint32_t j = 0; j < AES_NB; j++) { diff --git a/src/AESCrypto.h b/src/AESCrypto.h index a7d9038f..f196963f 100644 --- a/src/AESCrypto.h +++ b/src/AESCrypto.h @@ -59,13 +59,19 @@ namespace crypto /// Initializes a new instance of the AES class. explicit AES(const AESKeyLength keyLength = AESKeyLength::AES_256); + /// uint8_t* encryptECB(const uint8_t in[], uint32_t inLen, const uint8_t key[]); + /// uint8_t* decryptECB(const uint8_t in[], uint32_t inLen, const uint8_t key[]); + /// uint8_t* encryptCBC(const uint8_t in[], uint32_t inLen, const uint8_t key[], const uint8_t* iv); + /// uint8_t* decryptCBC(const uint8_t in[], uint32_t inLen, const uint8_t key[], const uint8_t* iv); + /// uint8_t* encryptCFB(const uint8_t in[], uint32_t inLen, const uint8_t key[], const uint8_t* iv); + /// uint8_t* decryptCFB(const uint8_t in[], uint32_t inLen, const uint8_t key[], const uint8_t* iv); private: