libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptHashData.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>
23#include <ostream>
24#include <string>
25
26namespace introvirt {
27namespace windows {
28namespace advapi32 {
29
35class CryptHashData final : public WindowsFunctionCall {
36 public:
39
41 void pbData(const guest_ptr<uint8_t[]>& pbData);
42
43 uint32_t dwDataLen() const;
44 void dwDataLen(uint32_t dwDataLen);
45
46 uint32_t dwFlags() const;
47 void dwFlags(uint32_t dwFlags);
48
49 const std::string& function_name() const override;
50 const std::string& library_name() const override;
51 void write(std::ostream& os = std::cout) const override;
52 Json::Value json() const override;
53
54 bool result() const;
55 void result(bool result);
56
58 ~CryptHashData() override;
59
60 /* Injection helper */
61 static bool inject(HCRYPTHASH hHash, const guest_ptr<uint8_t[]>& pbData, uint32_t dwDataLen,
62 uint32_t dwFlags);
63
64 static constexpr int ArgumentCount = 4;
65 inline static const std::string LibraryName = "advapi32";
66 inline static const std::string FunctionName = "CryptHashData";
67
68 private:
69 /* Injection constructor */
70 CryptHashData(Event& event, HCRYPTHASH hHash, const guest_ptr<uint8_t[]>& pbData,
71 uint32_t dwDataLen, uint32_t dwFlags);
72
73 private:
74 HCRYPTHASH hHash_;
75 guest_ptr<void> pbData_;
76 uint32_t dwDataLen_;
77 uint32_t dwFlags_;
78};
79
80} // namespace advapi32
81} // namespace windows
82} // 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 advapi32!CryptHashData.
Definition CryptHashData.hh:35
guest_ptr< uint8_t[]> pbData() const
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
const std::string & library_name() const override
Get the name of the library this call is for.
static bool inject(HCRYPTHASH hHash, const guest_ptr< uint8_t[]> &pbData, uint32_t dwDataLen, uint32_t dwFlags)
static const std::string LibraryName
Definition CryptHashData.hh:65
static const std::string FunctionName
Definition CryptHashData.hh:66
const std::string & function_name() const override
Get the function name.
static constexpr int ArgumentCount
Definition CryptHashData.hh:64
Json::Value json() const override
Get the function as Json.
void pbData(const guest_ptr< uint8_t[]> &pbData)
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20