libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
Ssl3GenerateKeyMaterial.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 ncrypt {
28
35 public:
38
40 void pbSecret(const guest_ptr<uint8_t[]>& pbSecret);
41
42 uint32_t dwSecretLength() const;
44
46 void pbSeed(const guest_ptr<uint8_t[]>& pbSeed);
47
48 uint32_t dwSeedLength() const;
49 void dwSeedLength(uint32_t dwSeedLength);
50
53
56
57 const std::string& function_name() const override;
58 const std::string& library_name() const override;
59 void write(std::ostream& os = std::cout) const override;
60 Json::Value json() const override;
61
64
67
68 /* Injection helper */
70 const guest_ptr<uint8_t[]>& pbSecret, uint32_t dwSecretLength,
71 const guest_ptr<uint8_t[]>& pbSeed, uint32_t dwSeedLength,
74
75 static constexpr int ArgumentCount = 7;
76 inline static const std::string LibraryName = "ncrypt";
77 inline static const std::string FunctionName = "Ssl3GenerateKeyMaterial";
78
79 private:
80 /* Injection constructor */
82 const guest_ptr<uint8_t[]>& pbSecret, uint32_t dwSecretLength,
83 const guest_ptr<uint8_t[]>& pbSeed, uint32_t dwSeedLength,
85
86 private:
87 mutable guest_ptr<uint32_t> punknown1_;
88 guest_ptr<void> pbSecret_;
89 uint32_t dwSecretLength_;
90 guest_ptr<void> pbSeed_;
91 uint32_t dwSeedLength_;
92 mutable guest_ptr<void> punknown2_;
93 mutable guest_ptr<uint32_t> punknown3_;
94};
95
96} // namespace ncrypt
97} // namespace windows
98} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for ncrypt!Ssl3GenerateKeyMaterial.
Definition Ssl3GenerateKeyMaterial.hh:34
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.
void pbSeed(const guest_ptr< uint8_t[]> &pbSeed)
static nt::NTSTATUS inject(const guest_ptr< uint32_t > &punknown1, const guest_ptr< uint8_t[]> &pbSecret, uint32_t dwSecretLength, const guest_ptr< uint8_t[]> &pbSeed, uint32_t dwSeedLength, const guest_ptr< void > &punknown2, const guest_ptr< uint32_t > &punknown3)
static const std::string LibraryName
Definition Ssl3GenerateKeyMaterial.hh:76
const std::string & function_name() const override
Get the function name.
void pbSecret(const guest_ptr< uint8_t[]> &pbSecret)
void punknown3(const guest_ptr< uint32_t > &punknown3)
static constexpr int ArgumentCount
Definition Ssl3GenerateKeyMaterial.hh:75
void punknown2(const guest_ptr< void > &punknown2)
void punknown1(const guest_ptr< uint32_t > &punknown1)
const std::string & library_name() const override
Get the name of the library this call is for.
static const std::string FunctionName
Definition Ssl3GenerateKeyMaterial.hh:77
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20