dca_interface  6.3.4
dca_malware::Hash Class Reference

#include <malware_hashdata.h>

Detailed Description

Definition of the Hash class.

The Hash class defines the base class used for a SHA-256 Hash.

See also
MalwareDbClassifier

Definition at line 28 of file malware_hashdata.h.

Public Member Functions

 Hash (const unsigned char *buffer, size_t buffer_len)
 Constructs an Hash class with a given data buffer and its length. More...
 

Constructor & Destructor Documentation

◆ Hash()

dca_malware::Hash::Hash ( const unsigned char *  buffer,
size_t  buffer_len 
)

Constructs an Hash class with a given data buffer and its length.

Parameters
[in]bufferPointer to a char buffer that contains the hash binary data to use. The buffer is not copied and must exist until the classification call returns, and for the lifetime of the Hash class. It must include a trailing 0x00 byte
[in]buffer_lenThe length in characters of the buffer. It must be 32 as we only support SHA-256 hashes for now
See also
MalwareDbClassifier

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