src.dualinventive.com/fw/dncm/libdi/include/di/crypt/aes.h

21 lines
654 B
C

/**
* @file include/di/crypt/aes.h
* @brief DI-net AES-128-CBC implementation
* @date 7 January 2015
* @author ing. R.W.A. van der Heijden
* @copyright 2015 Dual Inventive B.V.
*
* Implementation of the AES-128-CBC crypt used in DI-Net encryption
*/
#ifndef DI_CRYPT_AES_H__
#define DI_CRYPT_AES_H__
#define AES_KEYSIZE_B 16
int8_t aes128cbc_encrypt(uint8_t *output, uint16_t *enc_len, const uint8_t *input, uint16_t length,
const uint8_t *key, const uint8_t *iv);
int8_t aes128cbc_decrypt(uint8_t *output, uint16_t *out_len, const uint8_t *input, uint16_t length,
const uint8_t *key, const uint8_t *iv);
#endif /* DI_CRYPT_AES_H__ */