diff options
author | Olivier Roques <oroques@cisco.com> | 2023-01-27 08:24:18 +0000 |
---|---|---|
committer | Luca Muscariello <muscariello@ieee.org> | 2023-01-31 12:20:16 +0000 |
commit | faa24848413c5a07b59870c8c6aca3af5dffd581 (patch) | |
tree | 4de535eb1e8db5a72cd81a51eda04239cef7b609 /libtransport | |
parent | ffb49a9c059e8551f3141a57d605fb6a3b221cb8 (diff) |
feat(tests): add HMAC to functional tests
Ref: HICN-833
Signed-off-by: Olivier Roques <oroques@cisco.com>
Change-Id: I40df138798f980f8a89e5fd13db54c2ac89f34b7
(cherry picked from commit 1db196beea9bbb9e78ad42abcdc0a1754ca19eed)
Diffstat (limited to 'libtransport')
-rw-r--r-- | libtransport/includes/hicn/transport/auth/crypto_hash.h | 2 | ||||
-rw-r--r-- | libtransport/src/auth/crypto_hash.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/includes/hicn/transport/auth/crypto_hash.h b/libtransport/includes/hicn/transport/auth/crypto_hash.h index fbe1d5160..9535e07c7 100644 --- a/libtransport/includes/hicn/transport/auth/crypto_hash.h +++ b/libtransport/includes/hicn/transport/auth/crypto_hash.h @@ -40,7 +40,7 @@ class CryptoHash { // Constructors CryptoHash(); CryptoHash(const CryptoHash &other); - CryptoHash(CryptoHash &&other); + CryptoHash(CryptoHash &&other) noexcept; CryptoHash(CryptoHashType hash_type); CryptoHash(const uint8_t *hash, std::size_t size, CryptoHashType hash_type); CryptoHash(const std::vector<uint8_t> &hash, CryptoHashType hash_type); diff --git a/libtransport/src/auth/crypto_hash.cc b/libtransport/src/auth/crypto_hash.cc index 0f6e9ab53..cf781d08e 100644 --- a/libtransport/src/auth/crypto_hash.cc +++ b/libtransport/src/auth/crypto_hash.cc @@ -27,7 +27,7 @@ CryptoHash::CryptoHash(const CryptoHash &other) digest_(other.digest_), digest_size_(other.digest_size_) {} -CryptoHash::CryptoHash(CryptoHash &&other) +CryptoHash::CryptoHash(CryptoHash &&other) noexcept : digest_type_(std::move(other.digest_type_)), digest_(std::move(other.digest_)), digest_size_(other.digest_size_) {} |