pub unsafe extern "C" fn Kravatte_WBCAE_Encipher(
    kvwInstance: *mut Kravatte_Instance,
    plaintext: *mut BitSequence,
    ciphertext: *mut BitSequence,
    dataBitLen: BitLength,
    AD: *const BitSequence,
    ADBitLen: BitLength
) -> c_int
Expand description

Function to encipher plaintext into ciphertext. @param kvInstance Pointer to the instance initialized by Kravatte_WBC_Initialize(). @param plaintext Pointer to plaintext data to encipher. The last ::Kravatte_WBCAE_t bits of the buffer will be overwritten with zeros. @param ciphertext Pointer to buffer where the enciphered data will be stored. The ciphertext buffer must not overlap plaintext. Ciphertext will be ::Kravatte_WBCAE_t bits longer than plaintext. @param dataBitLen The size in bits of the plaintext data. Plaintext and ciphertext buffers must be ::Kravatte_WBCAE_t bits longer than dataBitLen. @param AD Pointer to the metadata AD. @param ADBitLen The number of bits provided in the metadata. @return 0 if successful, 1 otherwise.