libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::windows::crypt32::CryptHashMessage Class Referencefinal

Handler for crypt32!CryptHashMessage. More...

#include <CryptHashMessage.hh>

Inheritance diagram for introvirt::windows::crypt32::CryptHashMessage:
Collaboration diagram for introvirt::windows::crypt32::CryptHashMessage:

Public Member Functions

guest_ptr< void > pHashPara () const
 
void pHashPara (const guest_ptr< void > &pHashPara)
 
bool fDetachedHash () const
 
void fDetachedHash (bool fDetachedHash)
 
uint32_t cToBeHashed () const
 
void cToBeHashed (uint32_t cToBeHashed)
 
guest_ptr< uint8_t *[], guest_ptr_trgpbToBeHashed () const
 
void rgpbToBeHashed (const guest_ptr< uint8_t *[], guest_ptr_t > &rgpbToBeHashed)
 
guest_ptr< uint32_t[]> rgcbToBeHashed () const
 
void rgcbToBeHashed (const guest_ptr< uint32_t[]> &rgcbToBeHashed)
 
guest_ptr< uint8_t[]> pbHashedBlob () const
 
void pbHashedBlob (const guest_ptr< uint8_t[]> &pbHashedBlob)
 
guest_ptr< uint32_t > pcbHashedBlob () const
 
void pcbHashedBlob (const guest_ptr< uint32_t > &pcbHashedBlob)
 
guest_ptr< uint8_t[]> pbComputedHash () const
 
void pbComputedHash (const guest_ptr< uint8_t[]> &pbComputedHash)
 
guest_ptr< uint32_t > pcbComputedHash () const
 
void pcbComputedHash (const guest_ptr< uint32_t > &pcbComputedHash)
 
const std::string & function_name () const override
 Get the function name.
 
const std::string & library_name () const override
 Get the name of the library this call is for.
 
void write (std::ostream &os=std::cout) const override
 Write out a textual representation of the function for display.
 
Json::Value json () const override
 Get the function as Json.
 
bool result () const
 
void result (bool result)
 
 CryptHashMessage (Event &event)
 
 ~CryptHashMessage () override
 
- Public Member Functions inherited from introvirt::windows::WindowsFunctionCall
guest_ptr< void > return_address () const override
 Get the return address for this function call.
 
void return_address (const guest_ptr< void > &value) override
 Set the return address for this function call.
 
bool is_return_event (Event &event) const override
 Check if the given event is a return event for this function call.
 
void handle_return (Event &event) override
 Handle the return event.
 
bool returned () const override
 Check if the call has returned.
 
bool x64 () const
 Check if the call is from x64 mode.hh>
 
virtual ~WindowsFunctionCall ()
 
- Public Member Functions inherited from introvirt::FunctionCall
bool hook_return () const
 Check if the user is requesting that the return be intercepted.
 
void hook_return (bool val)
 Configure if the return should be intercepted.
 
void data (const std::string &key, const std::shared_ptr< void > &value)
 Store arbitrary data with the FunctionCall.
 
void data (const std::string &key, std::shared_ptr< void > &&value)
 Store arbitrary data with the FunctionCall.
 
std::shared_ptr< void > data (const std::string &key)
 Retrieve arbitrary data stored with the FunctionCall.
 
std::shared_ptr< const void > data (const std::string &key) const
 Retrieve arbitrary data stored with the FunctionCall.
 
virtual ~FunctionCall ()=default
 

Static Public Member Functions

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)
 

Static Public Attributes

static constexpr int ArgumentCount = 9
 
static const std::string LibraryName = "crypt32"
 
static const std::string FunctionName = "CryptHashMessage"
 

Additional Inherited Members

- Protected Member Functions inherited from introvirt::windows::WindowsFunctionCall
uint64_t raw_return_value () const
 
void raw_return_value (uint64_t value)
 
uint64_t get_argument (unsigned int index) const
 
void set_argument (unsigned int index, uint64_t value)
 
guest_ptr< void > get_address_argument (unsigned int index) const
 
void set_address_argument (unsigned int index, const guest_ptr< void > &address)
 
Vcpuvcpu ()
 
const Vcpuvcpu () const
 
 WindowsFunctionCall (Event &event, unsigned int argument_count, WindowsCallType type=WindowsCallType::AUTO)
 

Detailed Description

Constructor & Destructor Documentation

◆ CryptHashMessage()

introvirt::windows::crypt32::CryptHashMessage::CryptHashMessage ( Event event)

◆ ~CryptHashMessage()

introvirt::windows::crypt32::CryptHashMessage::~CryptHashMessage ( )
override

Member Function Documentation

◆ cToBeHashed() [1/2]

uint32_t introvirt::windows::crypt32::CryptHashMessage::cToBeHashed ( ) const

◆ cToBeHashed() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::cToBeHashed ( uint32_t  cToBeHashed)

◆ fDetachedHash() [1/2]

bool introvirt::windows::crypt32::CryptHashMessage::fDetachedHash ( ) const

◆ fDetachedHash() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::fDetachedHash ( bool  fDetachedHash)

◆ function_name()

const std::string & introvirt::windows::crypt32::CryptHashMessage::function_name ( ) const
overridevirtual

Get the function name.

Returns
const std::string&

Implements introvirt::FunctionCall.

◆ inject()

static bool introvirt::windows::crypt32::CryptHashMessage::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 
)
static

◆ json()

Json::Value introvirt::windows::crypt32::CryptHashMessage::json ( ) const
overridevirtual

Get the function as Json.

Returns
Json::Value

Implements introvirt::FunctionCall.

◆ library_name()

const std::string & introvirt::windows::crypt32::CryptHashMessage::library_name ( ) const
overridevirtual

Get the name of the library this call is for.

Returns
const std::string&

Implements introvirt::FunctionCall.

◆ pbComputedHash() [1/2]

guest_ptr< uint8_t[]> introvirt::windows::crypt32::CryptHashMessage::pbComputedHash ( ) const

◆ pbComputedHash() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::pbComputedHash ( const guest_ptr< uint8_t[]> &  pbComputedHash)

◆ pbHashedBlob() [1/2]

guest_ptr< uint8_t[]> introvirt::windows::crypt32::CryptHashMessage::pbHashedBlob ( ) const

◆ pbHashedBlob() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::pbHashedBlob ( const guest_ptr< uint8_t[]> &  pbHashedBlob)

◆ pcbComputedHash() [1/2]

guest_ptr< uint32_t > introvirt::windows::crypt32::CryptHashMessage::pcbComputedHash ( ) const

◆ pcbComputedHash() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::pcbComputedHash ( const guest_ptr< uint32_t > &  pcbComputedHash)

◆ pcbHashedBlob() [1/2]

guest_ptr< uint32_t > introvirt::windows::crypt32::CryptHashMessage::pcbHashedBlob ( ) const

◆ pcbHashedBlob() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::pcbHashedBlob ( const guest_ptr< uint32_t > &  pcbHashedBlob)

◆ pHashPara() [1/2]

guest_ptr< void > introvirt::windows::crypt32::CryptHashMessage::pHashPara ( ) const

◆ pHashPara() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::pHashPara ( const guest_ptr< void > &  pHashPara)

◆ result() [1/2]

bool introvirt::windows::crypt32::CryptHashMessage::result ( ) const

◆ result() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::result ( bool  result)

◆ rgcbToBeHashed() [1/2]

guest_ptr< uint32_t[]> introvirt::windows::crypt32::CryptHashMessage::rgcbToBeHashed ( ) const

◆ rgcbToBeHashed() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::rgcbToBeHashed ( const guest_ptr< uint32_t[]> &  rgcbToBeHashed)

◆ rgpbToBeHashed() [1/2]

guest_ptr< uint8_t *[], guest_ptr_t > introvirt::windows::crypt32::CryptHashMessage::rgpbToBeHashed ( ) const

◆ rgpbToBeHashed() [2/2]

void introvirt::windows::crypt32::CryptHashMessage::rgpbToBeHashed ( const guest_ptr< uint8_t *[], guest_ptr_t > &  rgpbToBeHashed)

◆ write()

void introvirt::windows::crypt32::CryptHashMessage::write ( std::ostream &  os = std::cout) const
overridevirtual

Write out a textual representation of the function for display.

Parameters
os

Implements introvirt::FunctionCall.

Member Data Documentation

◆ ArgumentCount

constexpr int introvirt::windows::crypt32::CryptHashMessage::ArgumentCount = 9
staticconstexpr

◆ FunctionName

const std::string introvirt::windows::crypt32::CryptHashMessage::FunctionName = "CryptHashMessage"
inlinestatic

◆ LibraryName

const std::string introvirt::windows::crypt32::CryptHashMessage::LibraryName = "crypt32"
inlinestatic

The documentation for this class was generated from the following file: