Merge branch 'master' of https://github.com/bricke/tiny-AES128-C
This commit is contained in:
@@ -10,11 +10,11 @@ void AES_ECB_decrypt(uint8_t* input, const uint8_t* key, uint8_t* output);
|
|||||||
void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
|
void AES_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
|
||||||
void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
|
void AES_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
|
||||||
```
|
```
|
||||||
You can choose to use the standard 128b key or 192 by defining AES192 or 256b by defining AES256 - beta
|
You can choose to use the standard 128b key or 192/256b by defining the symbols AES192 or AES256
|
||||||
|
|
||||||
You can choose to use one or both of the modes-of-operation, by defining the symbols CBC and ECB. See the header file for clarification.
|
You can choose to use one or both of the modes-of-operation, by defining the symbols CBC and ECB. See the header file for clarification.
|
||||||
|
|
||||||
There is no built-in error checking or protection from out-of-bounds memory access errors as a result of malicious input. The two functions AES128_ECB_xxcrypt() do most of the work, and they expect inputs of 128 bit length.
|
There is no built-in error checking or protection from out-of-bounds memory access errors as a result of malicious input. The two functions AES_ECB_xxcrypt() do most of the work, and they expect inputs of 128 bit length.
|
||||||
|
|
||||||
The module uses around 200 bytes of RAM and 2.5K ROM when compiled for ARM (~2K for Thumb but YMMV).
|
The module uses around 200 bytes of RAM and 2.5K ROM when compiled for ARM (~2K for Thumb but YMMV).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user