![]() |
ndn-lite
|
Functions | |
int | tc_cbc_mode_encrypt (uint8_t *out, unsigned int outlen, const uint8_t *in, unsigned int inlen, const uint8_t *iv, const TCAesKeySched_t sched) |
CBC encryption procedure CBC encrypts inlen bytes of the in buffer into the out buffer using the encryption key schedule provided, prepends iv to out. More... | |
int | tc_cbc_mode_decrypt (uint8_t *out, unsigned int outlen, const uint8_t *in, unsigned int inlen, const uint8_t *iv, const TCAesKeySched_t sched) |
CBC decryption procedure CBC decrypts inlen bytes of the in buffer into the out buffer using the provided encryption key schedule. More... | |
int tc_cbc_mode_decrypt | ( | uint8_t * | out, |
unsigned int | outlen, | ||
const uint8_t * | in, | ||
unsigned int | inlen, | ||
const uint8_t * | iv, | ||
const TCAesKeySched_t | sched | ||
) |
CBC decryption procedure CBC decrypts inlen bytes of the in buffer into the out buffer using the provided encryption key schedule.
out | IN/OUT – buffer to receive decrypted data |
outlen | IN – length of plaintext buffer in bytes |
in | IN – ciphertext to decrypt, including IV |
inlen | IN – length of ciphertext buffer in bytes |
iv | IN – the IV for the this encrypt/decrypt |
sched | IN – AES key schedule for this decrypt |
int tc_cbc_mode_encrypt | ( | uint8_t * | out, |
unsigned int | outlen, | ||
const uint8_t * | in, | ||
unsigned int | inlen, | ||
const uint8_t * | iv, | ||
const TCAesKeySched_t | sched | ||
) |
CBC encryption procedure CBC encrypts inlen bytes of the in buffer into the out buffer using the encryption key schedule provided, prepends iv to out.
out | IN/OUT – buffer to receive the ciphertext |
outlen | IN – length of ciphertext buffer in bytes |
in | IN – plaintext to encrypt |
inlen | IN – length of plaintext buffer in bytes |
iv | IN – the IV for the this encrypt/decrypt |
sched | IN – AES key schedule for this encrypt |