libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CryptCreateHash.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 advapi32 {
30
37 public:
40
41 ALG_ID Algid() const;
43
44 HCRYPTKEY hKey() const;
46
47 uint32_t dwFlags() const;
48 void dwFlags(uint32_t dwFlags);
49
52
53 const std::string& function_name() const override;
54 const std::string& library_name() const override;
55 void write(std::ostream& os = std::cout) const override;
56 Json::Value json() const override;
57
58 bool result() const;
59 void result(bool result);
60
62 ~CryptCreateHash() override;
63
64 /* Injection helper */
67
68 static constexpr int ArgumentCount = 5;
69 inline static const std::string LibraryName = "advapi32";
70 inline static const std::string FunctionName = "CryptCreateHash";
71
72 private:
73 /* Injection constructor */
76
77 private:
78 HCRYPTPROV hProv_;
79 ALG_ID Algid_;
80 HCRYPTKEY hKey_;
81 uint32_t dwFlags_;
82 mutable guest_ptr<HCRYPTHASH> phHash_;
83};
84
85} // namespace advapi32
86} // namespace windows
87} // 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!CryptCreateHash.
Definition CryptCreateHash.hh:36
static bool inject(HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey, uint32_t dwFlags, const guest_ptr< HCRYPTHASH > &phHash)
const std::string & function_name() const override
Get the function name.
void phHash(const guest_ptr< HCRYPTHASH > &phHash)
static constexpr int ArgumentCount
Definition CryptCreateHash.hh:68
static const std::string FunctionName
Definition CryptCreateHash.hh:70
static const std::string LibraryName
Definition CryptCreateHash.hh:69
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
guest_ptr< HCRYPTHASH > phHash() const
Json::Value json() const override
Get the function as Json.
const std::string & library_name() const override
Get the name of the library this call is for.
Type-safe guest virtual address pointer and guest_ptr template.
ALG_ID
Encryption algoritm for advapi32 calls.
Definition ALG_ID.hh:32
Core IntroVirt classes.
Definition Cr0.hh:20