diff options
author | Angelo Mantellini <angelo.mantellini@cisco.com> | 2020-02-27 14:33:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-02-27 14:33:01 +0000 |
commit | 0fe06328d8bb8a174f0e9a246b437e5eaf2a7628 (patch) | |
tree | a8485c9952bf7bbc09ac6209b25352841a36371f /libtransport/src/core/manifest_format.h | |
parent | 40133d80a41f438b469b6c94e87fea2a00affa81 (diff) | |
parent | 3c532dd5e1844e0f094e2ae7555b1f65a2fd106f (diff) |
Merge "[HICN-538] Use type utils::CryptoHashtype instead of HashAlgorithm everywhere"
Diffstat (limited to 'libtransport/src/core/manifest_format.h')
-rw-r--r-- | libtransport/src/core/manifest_format.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libtransport/src/core/manifest_format.h b/libtransport/src/core/manifest_format.h index f95d19aa8..36d23f99b 100644 --- a/libtransport/src/core/manifest_format.h +++ b/libtransport/src/core/manifest_format.h @@ -45,12 +45,6 @@ enum class ManifestType : uint8_t { FLIC_MANIFEST = 3, }; -enum class HashAlgorithm : uint8_t { - SHA_256 = static_cast<uint8_t>(utils::CryptoHashType::SHA_256), - SHA_512 = static_cast<uint8_t>(utils::CryptoHashType::SHA_512), - CRC32C = static_cast<uint8_t>(utils::CryptoHashType::CRC32C), -}; - /** * INCREMENTAL: Manifests will be received inline with the data with no specific * assumption regarding the manifest capacity. Consumers can send interests @@ -92,7 +86,7 @@ class ManifestEncoder { return static_cast<Implementation &>(*this).setManifestTypeImpl(type); } - ManifestEncoder &setHashAlgorithm(HashAlgorithm hash) { + ManifestEncoder &setHashAlgorithm(utils::CryptoHashType hash) { return static_cast<Implementation &>(*this).setHashAlgorithmImpl(hash); } @@ -166,7 +160,7 @@ class ManifestDecoder { return static_cast<const Implementation &>(*this).getManifestTypeImpl(); } - HashAlgorithm getHashAlgorithm() const { + utils::CryptoHashType getHashAlgorithm() const { return static_cast<const Implementation &>(*this).getHashAlgorithmImpl(); } |