pub unsafe extern "C" fn cipher_encrypt(
cipher: *const cipher_t,
input: *const u8,
output: *mut u8,
) -> c_int
Expand description
@brief Encrypt data of BLOCK_SIZE length *
@param cipher Already initialized cipher struct @param input pointer to input data to encrypt @param output pointer to allocated memory for encrypted data. It has to be of size BLOCK_SIZE
@return The result of the encrypt operation of the underlying cipher, which is always 1 in case of success @return A negative value for an error