Update aes.c
This commit is contained in:
4
aes.c
4
aes.c
@@ -473,7 +473,7 @@ static void InvCipher(void)
|
|||||||
/* Public functions: */
|
/* Public functions: */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output)
|
void AES128_ECB_encrypt(uint8_t* input, const uint8_t* key, uint8_t *output)
|
||||||
{
|
{
|
||||||
// Copy the Key and CipherText
|
// Copy the Key and CipherText
|
||||||
Key = key;
|
Key = key;
|
||||||
@@ -487,7 +487,7 @@ void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output)
|
|||||||
Cipher();
|
Cipher();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AES128_ECB_decrypt(uint8_t* input, uint8_t* key, uint8_t *output)
|
void AES128_ECB_decrypt(uint8_t* input, const uint8_t* key, uint8_t *output)
|
||||||
{
|
{
|
||||||
Key = key;
|
Key = key;
|
||||||
in = input;
|
in = input;
|
||||||
|
|||||||
Reference in New Issue
Block a user