Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
aes/aes128cbc.h
- Committer:
- andrewboyson
- Date:
- 2019-10-15
- Revision:
- 19:f22327e8be7b
File content as of revision 19:f22327e8be7b:
#pragma once
#include <stdint.h>
#define AES128CBC_BLOCK_SIZE 16 //Block length in bytes AES is 128b block only
//void Aes128CbcInit (struct Aes128CbcState* ctx, const uint8_t* key, const uint8_t* iv);
//void Aes128CbcEncrypt(struct Aes128CbcState* ctx, uint8_t* buf, uint32_t length);
//void Aes128CbcDecrypt(struct Aes128CbcState* ctx, uint8_t* buf, uint32_t length);
void Aes128CbcEncrypt(const uint8_t* key, const uint8_t* iv, uint8_t* buf, uint32_t length);
void Aes128CbcDecrypt(const uint8_t* key, const uint8_t* iv, uint8_t* buf, uint32_t length);