⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crypto_kernel.txt

📁 mediastreamer2是开源的网络传输媒体流的库
💻 TXT
字号:
/**@defgroup CryptoKernel Cryptographic KernelAll of the cryptographic functions are contained in a kernel.*//**@defgroup CipherImplementations Ciphers@ingroup  CryptoKernel@brief A generic cipher type enables cipher agility, that is, theability to write code that runs with multiple cipher types.Ciphers can be used through the crypto kernel, or can be accesseddirectly, if need be.@{*//** * @brief Allocates a cipher of a particular type. * @warning May be implemented as a macro. */err_status_tcipher_type_alloc(cipher_type_t *ctype, cipher_t **cipher,                         unsigned key_len);/** * @brief Initialized a cipher to use a particular key.  May *       be invoked more than once on the same cipher. * @warning May be implemented as a macro. */err_status_tcipher_init(cipher_t *cipher, const uint8_t *key);/** * @brief Sets the initialization vector of a given cipher. * @warning May be implemented as a macro. */err_status_tcipher_set_iv(cipher_t *cipher, void *iv);/** * @brief Encrypts a buffer with a given cipher. * @warning May be implemented as a macro. */                           err_status_tcipher_encrypt(cipher_t *cipher, void *buf, unsigned int *len);/** * @brief Sets a buffer to the keystream generated by the cipher. * @warning May be implemented as a macro. */err_status_t cipher_output(cipher_t *c, uint8_t *buffer, int num_octets_to_output);/** * @brief Deallocates a cipher. * @warning May be implemented as a macro. */err_status_tcipher_dealloc(cipher_t *cipher);/** * @}  */ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -