libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
CRYPT_HASH_MESSAGE_PARA.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#pragma once
17
19#include "HCRYPTPROV_LEGACY.hh"
20
22
23#include <cstdint>
24
25namespace introvirt {
26namespace windows {
27namespace crypt32 {
28
36 public:
37 virtual uint32_t cbSize() const = 0;
38 virtual void cbSize(uint32_t cbSize) = 0;
39
40 virtual uint32_t dwMsgEncodingType() const = 0;
41 virtual void dwMsgEncodingType(uint32_t dwMsgEncodingType) = 0;
42
43 virtual HCRYPTPROV_LEGACY hCryptProv() const = 0;
45
46 virtual const CRYPT_ALGORITHM_IDENTIFIER& HashAlgorithm() const = 0;
48
49 virtual guest_ptr<void> pvHashAuxInfo() const = 0;
51
52 static std::shared_ptr<CRYPT_HASH_MESSAGE_PARA> make_shared(const guest_ptr<void>& ptr,
53 bool x64);
54
59 static size_t size(bool x64);
60
68 static size_t size(const Vcpu& vcpu);
69
70 virtual ~CRYPT_HASH_MESSAGE_PARA() = default;
71};
72
73} // namespace crypt32
74} // namespace windows
75} // namespace introvirt
A class representing a single virtual processor.
Definition Vcpu.hh:33
Definition guest_ptr.hh:88
Definition CRYPT_ALGORITHM_IDENTIFIER.hh:31
Definition CRYPT_HASH_MESSAGE_PARA.hh:35
virtual void dwMsgEncodingType(uint32_t dwMsgEncodingType)=0
virtual void pvHashAuxInfo(const guest_ptr< void > &pvHashAuxInfo)=0
virtual CRYPT_ALGORITHM_IDENTIFIER & HashAlgorithm()=0
static size_t size(bool x64)
Get the size of the structure.
virtual const CRYPT_ALGORITHM_IDENTIFIER & HashAlgorithm() const =0
static std::shared_ptr< CRYPT_HASH_MESSAGE_PARA > make_shared(const guest_ptr< void > &ptr, bool x64)
virtual guest_ptr< void > pvHashAuxInfo() const =0
virtual void hCryptProv(HCRYPTPROV_LEGACY hCryptProv)=0
virtual HCRYPTPROV_LEGACY hCryptProv() const =0
static size_t size(const Vcpu &vcpu)
Get the size of the structure.
Type-safe guest virtual address pointer and guest_ptr template.
uint64_t HCRYPTPROV_LEGACY
Definition fwd.hh:34
Core IntroVirt classes.
Definition Cr0.hh:20