libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptDecryptMessage.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<CRYPT_DECRYPT_MESSAGE_PARA> DecryptPara();
41
43 void pbEncryptedBlob(const guest_ptr<uint8_t[]>& pbEncryptedBlob);
44
45 uint32_t cbEncryptedBlob() const;
47
49 void pbDecrypted(const guest_ptr<uint8_t[]>& pbDecrypted);
50
53
56 std::shared_ptr<CERT_CONTEXT> XchgCert();
57
58 const std::string& function_name() const override;
59 const std::string& library_name() const override;
60 void write(std::ostream& os = std::cout) const override;
61 Json::Value json() const override;
62
63 bool result() const;
64 void result(bool result);
65
68
69 /* Injection helper */
71 const guest_ptr<uint8_t[]>& pbEncryptedBlob, uint32_t cbEncryptedBlob,
72 const guest_ptr<uint8_t[]>& pbDecrypted,
75
76 static constexpr int ArgumentCount = 6;
77 inline static const std::string LibraryName = "crypt32";
78 inline static const std::string FunctionName = "CryptDecryptMessage";
79
80 private:
81 /* Injection constructor */
83 const guest_ptr<uint8_t[]>& pbEncryptedBlob, uint32_t cbEncryptedBlob,
84 const guest_ptr<uint8_t[]>& pbDecrypted,
87
88 private:
89 guest_ptr<void> pDecryptPara_;
90 guest_ptr<void> pbEncryptedBlob_;
91 uint32_t cbEncryptedBlob_;
92 guest_ptr<void> pbDecrypted_;
93 mutable guest_ptr<uint32_t> pcbDecrypted_;
95};
96
97} // namespace crypt32
98} // namespace windows
99} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for crypt32!CryptDecryptMessage.
Definition CryptDecryptMessage.hh:36
const std::string & function_name() const override
Get the function name.
guest_ptr< uint8_t[]> pbEncryptedBlob() const
void ppXchgCert(const guest_ptr< void > &ppXchgCert)
guest_ptr< uint32_t > pcbDecrypted() const
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
void pcbDecrypted(const guest_ptr< uint32_t > &pcbDecrypted)
static constexpr int ArgumentCount
Definition CryptDecryptMessage.hh:76
static const std::string FunctionName
Definition CryptDecryptMessage.hh:78
std::shared_ptr< CRYPT_DECRYPT_MESSAGE_PARA > DecryptPara()
Json::Value json() const override
Get the function as Json.
guest_ptr< void *, guest_ptr_t > ppXchgCert() const
void pDecryptPara(const guest_ptr< void > &pDecryptPara)
guest_ptr< uint8_t[]> pbDecrypted() const
void pbEncryptedBlob(const guest_ptr< uint8_t[]> &pbEncryptedBlob)
static bool inject(const guest_ptr< void > &pDecryptPara, const guest_ptr< uint8_t[]> &pbEncryptedBlob, uint32_t cbEncryptedBlob, const guest_ptr< uint8_t[]> &pbDecrypted, const guest_ptr< uint32_t > &pcbDecrypted, const guest_ptr< void *, guest_ptr_t > &ppXchgCert)
std::shared_ptr< CERT_CONTEXT > XchgCert()
void pbDecrypted(const guest_ptr< uint8_t[]> &pbDecrypted)
void cbEncryptedBlob(uint32_t cbEncryptedBlob)
const std::string & library_name() const override
Get the name of the library this call is for.
static const std::string LibraryName
Definition CryptDecryptMessage.hh:77
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20