From 1db196beea9bbb9e78ad42abcdc0a1754ca19eed Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Fri, 27 Jan 2023 08:24:18 +0000 Subject: feat(tests): add HMAC to functional tests Ref: HICN-833 Signed-off-by: Olivier Roques Change-Id: I40df138798f980f8a89e5fd13db54c2ac89f34b7 --- libtransport/includes/hicn/transport/auth/crypto_hash.h | 2 +- libtransport/src/auth/crypto_hash.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libtransport') 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 &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_) {} -- cgit 1.2.3-korg