Z-Wave Protocol Controller Reference
user_credential_checksum_calculator.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2024 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13#ifndef USER_CREDENTIAL_CHECKSUM_CALCULATOR_H
14#define USER_CREDENTIAL_CHECKSUM_CALCULATOR_H
15
16// Cpp includes
17#include <vector>
18
19// Unify
20#include "attribute.hpp"
21
22// Types
24
26{
27
33{
34 public:
42 void add_node(const attribute_store::attribute &attribute);
51
52 private:
53 std::vector<uint8_t> checksum_data;
54};
55
56} // namespace user_credential
57
58#endif // USER_CREDENTIAL_CHECKSUM_CALCULATOR_H
Compute the checksum based on the attribute store.
Definition: user_credential_checksum_calculator.h:33
void add_node(const attribute_store::attribute &attribute)
Compute a node value and add it to the current checksum.
user_credential_checksum_t compute_checksum()
Compute the checksum of the added nodes.
std::vector< uint8_t > checksum_data
Definition: user_credential_checksum_calculator.h:53
uint16_t user_credential_checksum_t
‍User Credential Checksum. uint16_t
Definition: zwave_command_class_user_credential_types.h:44
Definition: user_credential_checksum_calculator.h:26