libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptDecodeMessage.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>
25#include <ostream>
26#include <string>
27
28namespace introvirt {
29namespace windows {
30namespace crypt32 {
31
38 public:
39 uint32_t dwMsgTypeFlags() const;
41
44 std::shared_ptr<CRYPT_DECRYPT_MESSAGE_PARA> DecryptPara();
45
48 std::shared_ptr<CRYPT_VERIFY_MESSAGE_PARA> VerifyPara();
49
50 uint32_t dwSignerIndex() const;
52
54 void pbEncodedBlob(const guest_ptr<uint8_t[]>& pbEncodedBlob);
55
56 uint32_t cbEncodedBlob() const;
58
59 uint32_t dwPrevInnerContentType() const;
61
64
67
69 void pbDecoded(const guest_ptr<uint8_t[]>& pbDecoded);
70
73
76 std::shared_ptr<CERT_CONTEXT> XchgCert();
77
80 std::shared_ptr<CERT_CONTEXT> SignerCert();
81
82 const std::string& function_name() const override;
83 const std::string& library_name() const override;
84 void write(std::ostream& os = std::cout) const override;
85 Json::Value json() const override;
86
87 bool result() const;
88 void result(bool result);
89
92
93 /* Injection helper */
94 static bool inject(uint32_t dwMsgTypeFlags, const guest_ptr<void>& pDecryptPara,
96 const guest_ptr<uint8_t[]>& pbEncodedBlob, uint32_t cbEncodedBlob,
99 const guest_ptr<uint8_t[]>& pbDecoded, const guest_ptr<uint32_t>& pcbDecoded,
102
103 static constexpr int ArgumentCount = 13;
104 inline static const std::string LibraryName = "crypt32";
105 inline static const std::string FunctionName = "CryptDecodeMessage";
106
107 private:
108 /* Injection constructor */
111 const guest_ptr<uint8_t[]>& pbEncodedBlob, uint32_t cbEncodedBlob,
114 const guest_ptr<uint8_t[]>& pbDecoded, const guest_ptr<uint32_t>& pcbDecoded,
117
118 private:
119 uint32_t dwMsgTypeFlags_;
120 guest_ptr<void> pDecryptPara_;
121 guest_ptr<void> pVerifyPara_;
122 uint32_t dwSignerIndex_;
123 guest_ptr<void> pbEncodedBlob_;
124 uint32_t cbEncodedBlob_;
125 uint32_t dwPrevInnerContentType_;
126 mutable guest_ptr<uint32_t> pdwMsgType_;
127 mutable guest_ptr<uint32_t> pdwInnerContentType_;
128 guest_ptr<void> pbDecoded_;
129 mutable guest_ptr<uint32_t> pcbDecoded_;
131 guest_ptr<void*, guest_ptr_t> ppSignerCert_;
132};
133
134} // namespace crypt32
135} // namespace windows
136} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for crypt32!CryptDecodeMessage.
Definition CryptDecodeMessage.hh:37
guest_ptr< uint32_t > pcbDecoded() const
void ppXchgCert(const guest_ptr< void > &ppXchgCert)
void pdwInnerContentType(const guest_ptr< uint32_t > &pdwInnerContentType)
guest_ptr< void *, guest_ptr_t > ppXchgCert() const
guest_ptr< uint8_t[]> pbEncodedBlob() const
std::shared_ptr< CERT_CONTEXT > XchgCert()
void ppSignerCert(const guest_ptr< void > &ppSignerCert)
const std::string & function_name() const override
Get the function name.
void pbDecoded(const guest_ptr< uint8_t[]> &pbDecoded)
void pbEncodedBlob(const guest_ptr< uint8_t[]> &pbEncodedBlob)
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
void dwSignerIndex(uint32_t dwSignerIndex)
static const std::string FunctionName
Definition CryptDecodeMessage.hh:105
guest_ptr< uint32_t > pdwInnerContentType() const
const std::string & library_name() const override
Get the name of the library this call is for.
void pVerifyPara(const guest_ptr< void > &pVerifyPara)
std::shared_ptr< CRYPT_DECRYPT_MESSAGE_PARA > DecryptPara()
void pdwMsgType(const guest_ptr< uint32_t > &pdwMsgType)
void pcbDecoded(const guest_ptr< uint32_t > &pcbDecoded)
guest_ptr< uint8_t[]> pbDecoded() const
static constexpr int ArgumentCount
Definition CryptDecodeMessage.hh:103
guest_ptr< void *, guest_ptr_t > ppSignerCert() const
void pDecryptPara(const guest_ptr< void > &pDecryptPara)
guest_ptr< uint32_t > pdwMsgType() const
Json::Value json() const override
Get the function as Json.
static const std::string LibraryName
Definition CryptDecodeMessage.hh:104
void dwMsgTypeFlags(uint32_t dwMsgTypeFlags)
std::shared_ptr< CERT_CONTEXT > SignerCert()
void dwPrevInnerContentType(uint32_t dwPrevInnerContentType)
std::shared_ptr< CRYPT_VERIFY_MESSAGE_PARA > VerifyPara()
void cbEncodedBlob(uint32_t cbEncodedBlob)
static bool inject(uint32_t dwMsgTypeFlags, const guest_ptr< void > &pDecryptPara, const guest_ptr< void > &pVerifyPara, uint32_t dwSignerIndex, const guest_ptr< uint8_t[]> &pbEncodedBlob, uint32_t cbEncodedBlob, uint32_t dwPrevInnerContentType, const guest_ptr< uint32_t > &pdwMsgType, const guest_ptr< uint32_t > &pdwInnerContentType, const guest_ptr< uint8_t[]> &pbDecoded, const guest_ptr< uint32_t > &pcbDecoded, const guest_ptr< void *, guest_ptr_t > &ppXchgCert, const guest_ptr< void *, guest_ptr_t > &ppSignerCert)
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20