libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptProtectData.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
43 void pszDataDescr(const guest_ptr<char[]>& pszDataDescr);
44
47 std::shared_ptr<CRYPTOAPI_BLOB> OptionalEntropy();
48
51
54 std::shared_ptr<CRYPTPROTECT_PROMPTSTRUCT> PromptStruct();
55
56 uint32_t dwFlags() const;
57 void dwFlags(uint32_t dwFlags);
58
61 std::shared_ptr<CRYPTOAPI_BLOB> DataOut();
62
63 const std::string& function_name() const override;
64 const std::string& library_name() const override;
65 void write(std::ostream& os = std::cout) const override;
66 Json::Value json() const override;
67
68 bool result() const;
69 void result(bool result);
70
73
74 /* Injection helper */
75 static bool inject(const guest_ptr<void>& pDataIn, const guest_ptr<char[]>& pszDataDescr,
77 const guest_ptr<void>& pPromptStruct, uint32_t dwFlags,
79
80 static constexpr int ArgumentCount = 7;
81 inline static const std::string LibraryName = "crypt32";
82 inline static const std::string FunctionName = "CryptProtectData";
83
84 private:
85 /* Injection constructor */
89 uint32_t dwFlags, const guest_ptr<void>& pDataOut);
90
91 private:
92 guest_ptr<void> pDataIn_;
93 guest_ptr<void> pszDataDescr_;
94 guest_ptr<void> pOptionalEntropy_;
95 mutable guest_ptr<void> pvReserved_;
96 guest_ptr<void> pPromptStruct_;
97 uint32_t dwFlags_;
98 guest_ptr<void> pDataOut_;
99};
100
101} // namespace crypt32
102} // namespace windows
103} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for crypt32!CryptProtectData.
Definition CryptProtectData.hh:36
void pszDataDescr(const guest_ptr< char[]> &pszDataDescr)
static const std::string FunctionName
Definition CryptProtectData.hh:82
void pDataOut(const guest_ptr< void > &pDataOut)
static bool inject(const guest_ptr< void > &pDataIn, const guest_ptr< char[]> &pszDataDescr, const guest_ptr< void > &pOptionalEntropy, const guest_ptr< void > &pvReserved, const guest_ptr< void > &pPromptStruct, uint32_t dwFlags, const guest_ptr< void > &pDataOut)
void pDataIn(const guest_ptr< void > &pDataIn)
static const std::string LibraryName
Definition CryptProtectData.hh:81
Json::Value json() const override
Get the function as Json.
const std::string & library_name() const override
Get the name of the library this call is for.
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
void pOptionalEntropy(const guest_ptr< void > &pOptionalEntropy)
std::shared_ptr< CRYPTOAPI_BLOB > OptionalEntropy()
void pPromptStruct(const guest_ptr< void > &pPromptStruct)
static constexpr int ArgumentCount
Definition CryptProtectData.hh:80
std::shared_ptr< CRYPTOAPI_BLOB > DataOut()
std::shared_ptr< CRYPTOAPI_BLOB > DataIn()
std::shared_ptr< CRYPTPROTECT_PROMPTSTRUCT > PromptStruct()
const std::string & function_name() const override
Get the function name.
void pvReserved(const guest_ptr< void > &pvReserved)
guest_ptr< void > pOptionalEntropy() const
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20