OpenZWave Library  1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ZWSecurity.h
Go to the documentation of this file.
1 /*
2  * Security.h
3  *
4  * Created on: Mar 20, 2015
5  * Author: justinhammond
6  */
7 
8 #ifndef SECURITY_H_
9 #define SECURITY_H_
10 
11 
12 #include <cstdio>
13 #include <string>
14 #include <string.h>
15 #include "Defs.h"
16 #include "Driver.h"
17 
18 namespace OpenZWave
19 {
20 bool EncyrptBuffer( uint8 *m_buffer, uint8 m_length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 const m_nonce[8], uint8* e_buffer);
21 bool DecryptBuffer( uint8 *e_buffer, uint8 e_length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 const m_nonce[8], uint8* m_buffer );
22 bool GenerateAuthentication( uint8 const* _data, uint32 const _length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 *iv, uint8* _authentication);
24 {
27 };
29 
30 }
31 
32 
33 #endif /* SECURITY_H_ */
Definition: ZWSecurity.h:26
bool EncyrptBuffer(uint8 *m_buffer, uint8 m_length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 const m_nonce[8], uint8 *e_buffer)
Definition: ZWSecurity.cpp:133
SecurityStrategy
Definition: ZWSecurity.h:23
unsigned int uint32
Definition: Defs.h:80
bool GenerateAuthentication(uint8 const *_data, uint32 const _length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 *iv, uint8 *_authentication)
Definition: ZWSecurity.cpp:49
Definition: ZWSecurity.h:25
SecurityStrategy ShouldSecureCommandClass(uint8 CommandClass)
Definition: ZWSecurity.cpp:354
bool DecryptBuffer(uint8 *e_buffer, uint8 e_length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 const m_nonce[8], uint8 *m_buffer)
Definition: ZWSecurity.cpp:268
unsigned char uint8
Definition: Defs.h:74