libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptHashMessage.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>
22#include <ostream>
23#include <string>
24
25namespace introvirt {
26namespace windows {
27namespace crypt32 {
28
35 public:
38
39 bool fDetachedHash() const;
41
42 uint32_t cToBeHashed() const;
43 void cToBeHashed(uint32_t cToBeHashed);
44
47
49 void rgcbToBeHashed(const guest_ptr<uint32_t[]>& rgcbToBeHashed);
50
52 void pbHashedBlob(const guest_ptr<uint8_t[]>& pbHashedBlob);
53
56
58 void pbComputedHash(const guest_ptr<uint8_t[]>& pbComputedHash);
59
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>& pHashPara, bool fDetachedHash, uint32_t cToBeHashed,
76 const guest_ptr<uint8_t*[], guest_ptr_t>& rgpbToBeHashed,
77 const guest_ptr<uint32_t[]>& pcbToBeHashed,
78 const guest_ptr<uint8_t[]>& pbHashedBlob,
80 const guest_ptr<uint8_t[]>& pbComputedHash,
82
83 static constexpr int ArgumentCount = 9;
84 inline static const std::string LibraryName = "crypt32";
85 inline static const std::string FunctionName = "CryptHashMessage";
86
87 private:
88 /* Injection constructor */
90 uint32_t cToBeHashed, const guest_ptr<uint8_t*[], guest_ptr_t>& rgpbToBeHashed,
91 const guest_ptr<uint32_t[]>& pcbToBeHashed,
92 const guest_ptr<uint8_t[]>& pbHashedBlob,
94 const guest_ptr<uint8_t[]>& pbComputedHash,
96
97 private:
98 mutable guest_ptr<void> pHashPara_;
99 bool fDetachedHash_;
100 uint32_t cToBeHashed_;
101 mutable guest_ptr<void> rgpbToBeHashed_;
102 guest_ptr<void> rgcbToBeHashed_;
103 guest_ptr<void> pbHashedBlob_;
104 mutable guest_ptr<uint32_t> pcbHashedBlob_;
105 guest_ptr<void> pbComputedHash_;
106 mutable guest_ptr<uint32_t> pcbComputedHash_;
107};
108
109} // namespace crypt32
110} // namespace windows
111} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Helper class to transparently convert between guest size and a value.
Definition guest_size_t_ptr.hh:498
Definition WindowsFunctionCall.hh:31
Handler for crypt32!CryptHashMessage.
Definition CryptHashMessage.hh:34
guest_ptr< uint32_t[]> rgcbToBeHashed() const
static bool inject(const guest_ptr< void > &pHashPara, bool fDetachedHash, uint32_t cToBeHashed, const guest_ptr< uint8_t *[], guest_ptr_t > &rgpbToBeHashed, const guest_ptr< uint32_t[]> &pcbToBeHashed, const guest_ptr< uint8_t[]> &pbHashedBlob, const guest_ptr< uint32_t > &pcbHashedBlob, const guest_ptr< uint8_t[]> &pbComputedHash, const guest_ptr< uint32_t > &pcbComputedHash)
guest_ptr< uint32_t > pcbComputedHash() const
void pcbHashedBlob(const guest_ptr< uint32_t > &pcbHashedBlob)
void pHashPara(const guest_ptr< void > &pHashPara)
static const std::string LibraryName
Definition CryptHashMessage.hh:84
void pbComputedHash(const guest_ptr< uint8_t[]> &pbComputedHash)
static constexpr int ArgumentCount
Definition CryptHashMessage.hh:83
guest_ptr< uint8_t[]> pbComputedHash() const
guest_ptr< uint8_t *[], guest_ptr_t > rgpbToBeHashed() const
Json::Value json() const override
Get the function as Json.
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
static const std::string FunctionName
Definition CryptHashMessage.hh:85
void pcbComputedHash(const guest_ptr< uint32_t > &pcbComputedHash)
const std::string & function_name() const override
Get the function name.
guest_ptr< uint8_t[]> pbHashedBlob() const
const std::string & library_name() const override
Get the name of the library this call is for.
void pbHashedBlob(const guest_ptr< uint8_t[]> &pbHashedBlob)
guest_ptr< uint32_t > pcbHashedBlob() const
void rgcbToBeHashed(const guest_ptr< uint32_t[]> &rgcbToBeHashed)
void rgpbToBeHashed(const guest_ptr< uint8_t *[], guest_ptr_t > &rgpbToBeHashed)
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20