43 if (version == Version::V1_0_0)
44 return {
"CRC-32",
"CRC-64",
"MD2",
"MD4",
"MD5",
"RIPEMD-160",
45 "SHA-1",
"SHA-224",
"SHA-256",
"SHA-384",
"SHA-512",
46 "SHA3-224",
"SHA3-256",
"SHA3-384",
"SHA3-512",
47 "BLAKE3",
"SM3",
"Tiger",
"Whirlpool" };
60 ArrayString aSumsAlgos(sumsAlgos.cbegin(), sumsAlgos.cend());
73 for (
const string& algoName : sumsAlgos)
76 if (ChecksumFactory::getAlgorithmId(
id, algoName,
true))
80 assert(ids.size() == sumsAlgos.size());
94 case Version::V1_0_0 :
Classes for enumerate and create all the checksums' algorithms that the application knows.
std::vector< ChecksumAlgoId > ArrayChecksumAlgoId
Array of ids of algorithms of checksums.
ChecksumAlgoId
Ids of algorithms of checksums.
std::vector< std::string > ArrayString
Array of strings.
Version
Known versions of XCKS file.
std::set< std::string > StringSet
Set of strings.
Versions of (Z)XCKS files.
LIBXCKS_SO_EXPORT const StringSet getAvailableAlgorithmNames(const Version version)
Gets the available names of algorithm for a version of (Z)XCKS file.
LIBXCKS_SO_EXPORT const ArrayChecksumAlgoId getAvailableAlgorithmIds(const Version version)
Gets the available ids of algorithm for a version of (Z)XCKS file.
LIBXCKS_SO_EXPORT const ArrayString getAvailableAlgorithmNamesAsArray(const Version version)
Gets the available names of algorithm for a version of (Z)XCKS file.
LIBXCKS_SO_EXPORT const std::string getXCKSVersionName(const Version version)
Gets the name of an (Z)XCKS file version.