24 #ifndef INC_CKVALUE_HPP_FD0D3DA3_A3D6_4C78_BC24_3ED4A5CD585E
25 #define INC_CKVALUE_HPP_FD0D3DA3_A3D6_4C78_BC24_3ED4A5CD585E
92 const uint8_t* getValue()
const;
95 bool getValue(uint8_t* value,
const size_t size)
const;
98 void setValue(
const uint8_t* value,
const size_t size,
const ChecksumAlgoId type);
101 void setValue(
const std::string& strValue,
const ChecksumAlgoId type);
104 size_t getSize()
const;
Interface for classes that compute checksums.
void LIBXCKS_SO_EXPORT getNullValues(ArrayChecksumValue &values, const ArrayChecksumAlgoId &ids)
Gets an array of null checksums' values from an array of checksums ids.
std::vector< ChecksumValue > ArrayChecksumValue
Array of values of checksum.
bool LIBXCKS_SO_EXPORT hasChecksumValueWithAlgoId(const ArrayChecksumValue &ckvalues, const ChecksumAlgoId type)
Checks if the array as a value of the given type.
Stores the value of a checksum.
ChecksumAlgoId type
Type of the checksum.
size_t valueSize
Size of the checksum's value.
uint8_t * value
Value of the checksum.
Computes a checksum from a byte stream.
OS dependent exports defines.
Common types for libxcks.
std::vector< ChecksumAlgoId > ArrayChecksumAlgoId
Array of ids of algorithms of checksums.
ChecksumAlgoId
Ids of algorithms of checksums.