libxcks  0.1.0.1
types.hpp File Reference

Common types for libxcks. More...

#include <string>
#include <vector>
#include <set>
#include <filesystem>
Include dependency graph for types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using libxcks::StringSet = std::set< std::string >
 Set of strings. More...
 
using libxcks::ArrayString = std::vector< std::string >
 Array of strings. More...
 
using libxcks::ArrayPath = std::vector< std::filesystem::path >
 Array of paths. More...
 
using libxcks::ArrayChecksumAlgoId = std::vector< ChecksumAlgoId >
 Array of ids of algorithms of checksums. More...
 

Enumerations

enum class  libxcks::Version : int { V1_0_0 , First_Valid = V1_0_0 , Last_Valid = V1_0_0 }
 Known versions of XCKS file. More...
 
enum class  libxcks::ChecksumAlgoId : int {
  Invalid = -999 , CRC32 = 0 , First = CRC32 , CRC64 ,
  MD2 , MD4 , MD5 , RIPEMD_160 ,
  SHA1 , SHA2_224 , SHA2_256 , SHA2_384 ,
  SHA2_512 , SHA3_224 , SHA3_256 , SHA3_384 ,
  SHA3_512 , BLAKE3 , SM3 , Tiger ,
  Whirlpool , Last = Whirlpool
}
 Ids of algorithms of checksums. More...
 

Detailed Description

Common types for libxcks.

Definition in file types.hpp.

Typedef Documentation

◆ ArrayChecksumAlgoId

using libxcks::ArrayChecksumAlgoId = typedef std::vector<ChecksumAlgoId>

Array of ids of algorithms of checksums.

Definition at line 92 of file types.hpp.

◆ ArrayPath

using libxcks::ArrayPath = typedef std::vector<std::filesystem::path>

Array of paths.

Definition at line 49 of file types.hpp.

◆ ArrayString

using libxcks::ArrayString = typedef std::vector<std::string>

Array of strings.

Definition at line 44 of file types.hpp.

◆ StringSet

using libxcks::StringSet = typedef std::set<std::string>

Set of strings.

Definition at line 39 of file types.hpp.

Enumeration Type Documentation

◆ ChecksumAlgoId

enum libxcks::ChecksumAlgoId : int
strong

Ids of algorithms of checksums.

Enumerator
Invalid 

Invalid algorithm id.

CRC32 

CRC32b.

First 

First algorithm (for loops).

CRC64 

CRC-64 (ECMA 182 standard).

MD2 

MD2 message digest.

MD4 

MD4 message digest.

MD5 

MD5 message digest.

RIPEMD_160 

RIPE Message Digest (160 bits).

SHA1 

Secure Hash Algorithm 1.

SHA2_224 

Secure Hash Algorithm 2 (224 bits, truncated version of SHA-256).

SHA2_256 

Secure Hash Algorithm 2 (256 bits).

SHA2_384 

Secure Hash Algorithm 2 (384 bits, truncated version of SHA-512).

SHA2_512 

Secure Hash Algorithm 2 (512 bits).

SHA3_224 

Secure Hash Algorithm 3 (224 bits based on the Keccak family).

SHA3_256 

Secure Hash Algorithm 3 (256 bits based on the Keccak family).

SHA3_384 

Secure Hash Algorithm 3 (384 bits based on the Keccak family).

SHA3_512 

Secure Hash Algorithm 3 (512 bits based on the Keccak family).

BLAKE3 

BLAKE3 cryptographic hash function (in its default output size of 256 bits).

SM3 

SM3 cryptographic hash function.

Tiger 

Tiger cryptographic hash function.

Whirlpool 

Whirlpool cryptographic hash function.

Last 

Last algorithm (for loops).

Definition at line 64 of file types.hpp.

◆ Version

enum libxcks::Version : int
strong

Known versions of XCKS file.

Enumerator
V1_0_0 

Version 1.0.0.

First_Valid 

First valid known version.

Last_Valid 

Last valid known version.

Definition at line 54 of file types.hpp.