|
libaaruformat 1.0
Aaru Data Preservation Suite - Format Library
|
#include <stdint.h>Go to the source code of this file.
Functions | |
| void | aes128_cbc_encrypt (const uint8_t key[16], const uint8_t iv[16], uint8_t *data, uint32_t length) |
| AES-128 CBC encrypt data in-place. | |
| void | aes128_cbc_decrypt (const uint8_t key[16], const uint8_t iv[16], uint8_t *data, uint32_t length) |
| AES-128 CBC decrypt data in-place. | |
| void aes128_cbc_decrypt | ( | const uint8_t | key[16], |
| const uint8_t | iv[16], | ||
| uint8_t * | data, | ||
| uint32_t | length ) |
AES-128 CBC decrypt data in-place.
| key | 16-byte decryption key. |
| iv | 16-byte initialization vector (not modified). |
| data | Buffer to decrypt in-place. Must be a multiple of 16 bytes. |
| length | Number of bytes to decrypt. Must be a multiple of 16. |
Definition at line 290 of file aes128.c.
References aes128_cbc_decrypt(), AES_BLOCK_SIZE, inv_cipher(), key_expansion(), aes128_ctx::round_key, and xor_block().
Referenced by aes128_cbc_decrypt(), ps3_decrypt_sector(), wii_decrypt_group(), and wiiu_decrypt_physical_sector().
| void aes128_cbc_encrypt | ( | const uint8_t | key[16], |
| const uint8_t | iv[16], | ||
| uint8_t * | data, | ||
| uint32_t | length ) |
AES-128 CBC encrypt data in-place.
| key | 16-byte encryption key. |
| iv | 16-byte initialization vector (not modified). |
| data | Buffer to encrypt in-place. Must be a multiple of 16 bytes. |
| length | Number of bytes to encrypt. Must be a multiple of 16. |
Definition at line 274 of file aes128.c.
References aes128_cbc_encrypt(), AES_BLOCK_SIZE, cipher(), key_expansion(), aes128_ctx::round_key, and xor_block().
Referenced by aes128_cbc_encrypt(), ps3_derive_disc_key(), ps3_encrypt_sector(), wii_encrypt_group(), and wiiu_encrypt_physical_sector().