This commit refactors various unit tests to use `constexpr` for
defining constants instead of anonymous `enum` types.
Using `constexpr` is the modern and preferred approach in C++, as it
provides explicit types for constants and improves code clarity and
type safety.
This commit adds a new class `Crypto::HkdfSha256` which implements
HMAC-based Extract-and-Expand Key Derivation Function from RFC-5869
using SHA-256. It also adds a unit test for the new module.
This commit updates `test_utils.hpp/cpp` to include a common helper
function `DumpBuffer` to print the content of a buffer (as hex and char string)
to screen. It also removes unused helper functions and use of STL header
files and types.
* 6LoWPAN: Add compression flag to the Context structure.
* IP: Add option to initialize IPv6 header.
* 6LoWPAN: Bugfixes for compression and decompression procedure.
* 6LoWPAN: Add test vectors for 6LoWPAN compression and decompression.
* Added initial unit tests for 6LoWPAN layer decompression. Extended unit test framework with helper functions for setting up ASCI hex test vectors.
* Added missing license headers. Cleanly broke C++ into .hpp vs .h.
* Added multicast test vectors to 6lo decompression unit tests.
* Make pretty.
* Added Lowpan::Compress unit test.
* Allow extended initializer lists for unit test build.
* Split out sTestVectorLowpan into pure C99 file as it uses struct { .mField = initializers; } which may upset stricter C++ compilers such as clang++.
* Fix make distcheck - add stubs to test_lowpan for unhandled driver callbacks.
* Resolve most comments besides otDump suggestion.