sha204 library extended with CRC calculator

Locking operations are recommended to include CRC
and since sha204 library internally carries the proper
algorithm for this, it has now been refactored to support
both static and incremental calculations needed for both
command marchalling and locking.
This commit is contained in:
Patrick Fallberg
2015-01-10 18:39:47 +01:00
parent 1ac6f0a291
commit 963a756605
2 changed files with 29 additions and 18 deletions
+1
View File
@@ -314,6 +314,7 @@ public:
uint8_t tx_size, uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer);
uint8_t getSerialNumber(uint8_t *response);
uint16_t calculateAndUpdateCrc(uint8_t length, uint8_t *data, uint16_t current_crc);
};