aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorOlivier Roques <oroques@cisco.com>2023-01-27 08:24:18 +0000
committerOlivier Roques <oroques+fdio@cisco.com>2023-01-27 09:55:07 +0000
commit1db196beea9bbb9e78ad42abcdc0a1754ca19eed (patch)
tree463bb6c5c78bf67a8ca5da07949dab40fe40891c /libtransport
parent1d240b22d5f797372e48b81e51fa72c92f843e08 (diff)
feat(tests): add HMAC to functional tests
Ref: HICN-833 Signed-off-by: Olivier Roques <oroques@cisco.com> Change-Id: I40df138798f980f8a89e5fd13db54c2ac89f34b7
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/includes/hicn/transport/auth/crypto_hash.h2
-rw-r--r--libtransport/src/auth/crypto_hash.cc2
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_) {}