Extended MaximInterface

Dependents:   mbed_DS28EC20_GPIO

Revision:
6:a8c83a2e6fa4
Parent:
0:f77ad7f72d04
Child:
7:471901a04573
--- a/Utilities/Sha256.hpp	Fri Jan 19 10:25:02 2018 -0600
+++ b/Utilities/Sha256.hpp	Wed Jan 23 13:11:04 2019 -0600
@@ -34,26 +34,24 @@
 #define MaximInterface_Sha256
 
 #include <stdint.h>
-#include "array.hpp"
+#include "array_span.hpp"
 
 namespace MaximInterface {
 namespace Sha256 {
 
 /// Container for a SHA-256 hash.
-typedef array<uint_least8_t, 32> Hash;
-
-// Data used by SHA-256 MAC authenticators including DS28E15/22/25 and DS2465.
+typedef array_span<uint_least8_t, 32> Hash;
 
 /// Data for Compute Write MAC operation.
-typedef array<uint_least8_t, 20> WriteMacData;
+/// @details
+/// Used by SHA-256 MAC authenticators including DS28E15/22/25 and DS2465.
+typedef array_span<uint_least8_t, 20> WriteMacData;
 
-/// Data for the Compute Auth. MAC operation.
-typedef array<uint_least8_t, 76>AuthMacData;
-
-/// Data for the Compute Slave Secret operation.
-typedef array<uint_least8_t, 76> SlaveSecretData;
+/// Data for the Compute Auth. MAC and Compute Slave Secret operations.
+/// @copydetails WriteMacData
+typedef array_span<uint_least8_t, 76> AuthenticationData;
 
 } // namespace Sha256
 } // namespace MaximInterface
 
-#endif
\ No newline at end of file
+#endif