47                        uint8_t nonce_len, 
const uint8_t *input, 
size_t length,
 
   70                        uint8_t nonce_len, 
const uint8_t *input, 
size_t length,
 
Headers for the packet encryption class.
 
int cipher_decrypt_ctr(const cipher_t *cipher, uint8_t nonce_counter[16], uint8_t nonce_len, const uint8_t *input, size_t length, uint8_t *output)
Decrypt data of arbitrary length in counter mode.
 
int cipher_encrypt_ctr(const cipher_t *cipher, uint8_t nonce_counter[16], uint8_t nonce_len, const uint8_t *input, size_t length, uint8_t *output)
Encrypt data of arbitrary length in counter mode.
 
basic struct for using block ciphers contains the cipher interface and the context