libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptDecodeObjectEx.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:
38 uint32_t dwCertEncodingType() const;
40
45
47 void pbEncoded(const guest_ptr<uint8_t[]>& pbEncoded);
48
49 uint32_t cbEncoded() const;
50 void cbEncoded(uint32_t cbEncoded);
51
52 uint32_t dwFlags() const;
53 void dwFlags(uint32_t dwFlags);
54
57 std::shared_ptr<CRYPT_DECODE_PARA> DecodePara();
58
61
64
65 const std::string& function_name() const override;
66 const std::string& library_name() const override;
67 void write(std::ostream& os = std::cout) const override;
68 Json::Value json() const override;
69
70 bool result() const;
71 void result(bool result);
72
75
76 /* Injection helper */
77 static bool inject(uint32_t dwCertEncodingType, const guest_ptr<char[]>& pszStructType,
78 const guest_ptr<uint8_t[]>& pbEncoded, uint32_t cbEncoded, uint32_t dwFlags,
81
82 static constexpr int ArgumentCount = 8;
83 inline static const std::string LibraryName = "crypt32";
84 inline static const std::string FunctionName = "CryptDecodeObjectEx";
85
86 private:
87 /* Injection constructor */
89 const guest_ptr<char[]>& pszStructType,
90 const guest_ptr<uint8_t[]>& pbEncoded, uint32_t cbEncoded, uint32_t dwFlags,
93
94 private:
95 uint32_t dwCertEncodingType_;
96 guest_ptr<void> pszStructType_;
97 CryptStructType StructType_;
98 guest_ptr<void> pbEncoded_;
99 uint32_t cbEncoded_;
100 uint32_t dwFlags_;
101 guest_ptr<void> pDecodePara_;
102 mutable guest_ptr<void> pvStructInfo_;
103 mutable guest_ptr<uint32_t> pcbStructInfo_;
104};
105
106} // namespace crypt32
107} // namespace windows
108} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for crypt32!CryptDecodeObjectEx.
Definition CryptDecodeObjectEx.hh:36
void pcbStructInfo(const guest_ptr< uint32_t > &pcbStructInfo)
static const std::string LibraryName
Definition CryptDecodeObjectEx.hh:83
void pszStructType(const guest_ptr< char[]> &pszStructType)
std::shared_ptr< CRYPT_DECODE_PARA > DecodePara()
static const std::string FunctionName
Definition CryptDecodeObjectEx.hh:84
static constexpr int ArgumentCount
Definition CryptDecodeObjectEx.hh:82
void StructType(CryptStructType StructType)
const std::string & library_name() const override
Get the name of the library this call is for.
guest_ptr< uint32_t > pcbStructInfo() const
void pbEncoded(const guest_ptr< uint8_t[]> &pbEncoded)
void pDecodePara(const guest_ptr< void > &pDecodePara)
void pvStructInfo(const guest_ptr< void > &pvStructInfo)
const std::string & function_name() const override
Get the function name.
Json::Value json() const override
Get the function as Json.
static bool inject(uint32_t dwCertEncodingType, const guest_ptr< char[]> &pszStructType, const guest_ptr< uint8_t[]> &pbEncoded, uint32_t cbEncoded, uint32_t dwFlags, const guest_ptr< void > &pDecodePara, const guest_ptr< void > &pvStructInfo, const guest_ptr< uint32_t > &pcbStructInfo)
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
void dwCertEncodingType(uint32_t dwCertEncodingType)
Type-safe guest virtual address pointer and guest_ptr template.
CryptStructType
Definition CryptStructType.hh:25
Core IntroVirt classes.
Definition Cr0.hh:20