Lines Matching refs:cipher
14 @brief A generic cipher type enables cipher agility, that is, the
15 ability to write code that runs with multiple cipher types.
24 * @brief Allocates a cipher of a particular type.
28 cipher_type_alloc(cipher_type_t *ctype, cipher_t **cipher,
32 * @brief Initialized a cipher to use a particular key. May
33 * be invoked more than once on the same cipher.
38 cipher_init(cipher_t *cipher, const uint8_t *key);
41 * @brief Sets the initialization vector of a given cipher.
46 cipher_set_iv(cipher_t *cipher, void *iv);
49 * @brief Encrypts a buffer with a given cipher.
54 cipher_encrypt(cipher_t *cipher, void *buf, unsigned int *len);
57 * @brief Sets a buffer to the keystream generated by the cipher.
64 * @brief Deallocates a cipher.
68 cipher_dealloc(cipher_t *cipher);