Function riot_sys::cipher_decrypt

source ·
pub unsafe extern "C" fn cipher_decrypt(
    cipher: *const cipher_t,
    input: *const u8,
    output: *mut u8
) -> c_int
Expand description

@brief Decrypt data of BLOCK_SIZE length *

@param cipher Already initialized cipher struct @param input pointer to input data (of size BLOCKS_SIZE) to decrypt @param output pointer to allocated memory for decrypted data. It has to be of size BLOCK_SIZE

@return The result of the decrypt operation of the underlying cipher, which is always 1 in case of success @return A negative value for an error