[][src]Function libthemis_sys::themis_secure_cell_encrypt_context_imprint

pub unsafe extern "C" fn themis_secure_cell_encrypt_context_imprint(
    master_key: *const u8,
    master_key_length: usize,
    message: *const u8,
    message_length: usize,
    context: *const u8,
    context_length: usize,
    encrypted_message: *mut u8,
    encrypted_message_length: *mut usize
) -> themis_status_t

@brief encrypt @param [in] master_key master key @param [in] master_key_length length of master_key @param [in] message message to encrypt @param [in] message_length length of message @param [in] context user defined context. May be set to NULL @param [in] context_length length of user_context @param [out] encrypted_message buffer for encrypted message store. May be set to NULL for encrypted message length determination @param [in, out] encrypted_message_length length of encrypted_message @return THEMIS_SUCCESS on success or THEMIS_FAIL on failure @note If encrypted_message==NULL or encrypted_message_length is not enought for encrypted message store then THEMIS_BUFFER_TOO_SMALL will return and encrypted_message_length will store length of buffer needed for encrypted message store