libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptUnprotectData.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16/* This file is automatically generated. Do not edit. */
17#pragma once
18
19#include <cstdint>
24#include <ostream>
25#include <string>
26
27namespace introvirt {
28namespace windows {
29namespace crypt32 {
30
37 public:
40 std::shared_ptr<CRYPTOAPI_BLOB> DataIn();
41
45
48 std::shared_ptr<CRYPTOAPI_BLOB> OptionalEntropy();
49
52
55 std::shared_ptr<CRYPTPROTECT_PROMPTSTRUCT> PromptStruct();
56
57 uint32_t dwFlags() const;
58 void dwFlags(uint32_t dwFlags);
59
62 std::shared_ptr<CRYPTOAPI_BLOB> DataOut();
63
64 const std::string& function_name() const override;
65 const std::string& library_name() const override;
66 void write(std::ostream& os = std::cout) const override;
67 Json::Value json() const override;
68
69 bool result() const;
70 void result(bool result);
71
74
75 /* Injection helper */
78 const guest_ptr<void>& pPromptStruct, uint32_t dwFlags,
80
81 static constexpr int ArgumentCount = 7;
82 inline static const std::string LibraryName = "crypt32";
83 inline static const std::string FunctionName = "CryptUnprotectData";
84
85 private:
86 /* Injection constructor */
90 const guest_ptr<void>& pPromptStruct, uint32_t dwFlags,
92
93 private:
94 guest_ptr<void> pDataIn_;
95 guest_ptr<char*, guest_ptr_t> ppszDataDescr_;
96 guest_ptr<void> pOptionalEntropy_;
97 mutable guest_ptr<void> pvReserved_;
98 guest_ptr<void> pPromptStruct_;
99 uint32_t dwFlags_;
100 guest_ptr<void> pDataOut_;
101};
102
103} // namespace crypt32
104} // namespace windows
105} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for crypt32!CryptUnprotectData.
Definition CryptUnprotectData.hh:36
void pDataOut(const guest_ptr< void > &pDataOut)
const std::string & library_name() const override
Get the name of the library this call is for.
std::shared_ptr< CRYPTOAPI_BLOB > OptionalEntropy()
void pPromptStruct(const guest_ptr< void > &pPromptStruct)
static constexpr int ArgumentCount
Definition CryptUnprotectData.hh:81
guest_ptr< char *, guest_ptr_t > ppszDataDescr() const
static const std::string FunctionName
Definition CryptUnprotectData.hh:83
const std::string & function_name() const override
Get the function name.
std::shared_ptr< CRYPTOAPI_BLOB > DataIn()
void pvReserved(const guest_ptr< void > &pvReserved)
Json::Value json() const override
Get the function as Json.
std::shared_ptr< CRYPTOAPI_BLOB > DataOut()
void pDataIn(const guest_ptr< void > &pDataIn)
static const std::string LibraryName
Definition CryptUnprotectData.hh:82
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
static bool inject(const guest_ptr< void > &pDataIn, const guest_ptr< void > &ppszDataDescr, const guest_ptr< void > &pOptionalEntropy, const guest_ptr< void > &pvReserved, const guest_ptr< void > &pPromptStruct, uint32_t dwFlags, const guest_ptr< void > &pDataOut)
void pOptionalEntropy(const guest_ptr< void > &pOptionalEntropy)
std::shared_ptr< CRYPTPROTECT_PROMPTSTRUCT > PromptStruct()
void ppszDataDescr(guest_ptr< void > ppszDataDescr)
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20