Function gnunet_sys::GNUNET_CRYPTO_symmetric_encrypt[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_symmetric_encrypt(
    block: *const c_void,
    size: usize,
    sessionkey: *const GNUNET_CRYPTO_SymmetricSessionKey,
    iv: *const GNUNET_CRYPTO_SymmetricInitializationVector,
    result: *mut c_void
) -> isize

@ingroup crypto Encrypt a block using a symmetric sessionkey.

@param block the block to encrypt @param size the size of the @a block @param sessionkey the key used to encrypt @param iv the initialization vector to use, use INITVALUE for streams. @return the size of the encrypted block, -1 for errors