[][src]Function libthemis_sys::themis_secure_cell_decrypt_token_protect

pub unsafe extern "C" fn themis_secure_cell_decrypt_token_protect(
    master_key: *const u8,
    master_key_length: usize,
    user_context: *const u8,
    user_context_length: usize,
    encrypted_message: *const u8,
    encrypted_message_length: usize,
    context: *const u8,
    context_length: usize,
    plain_message: *mut u8,
    plain_message_length: *mut usize
) -> themis_status_t

@brief decrypt @param [in] master_key master key @param [in] master_key_length length of master_key @param [in] user_context user defined context. May be set to NULL @param [in] user_context_length length of user_context @param [in] encrypted_message message to decrypt @param [in] encrypted_message_length length of encrypted_message @param [in] token additional authentication info @param [in] token_length length of additional authentication info @param [out] plain_message buffer for plain message store. May be set to NULL for plain message length determination @param [in, out] plain_message_length length of plain_message @return THEMIS_SUCCESS on success or THEMIS_FAIL on failure @note If plain_message==NULL or plain_message_length is not enought for plain message store then THEMIS_BUFFER_TOO_SMALL will return and plain_message_length will store length of buffer needed for plain1 message store