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.