ZWSecurity.h
Go to the documentation of this file.
/*
* Security.h
*
* Created on: Mar 20, 2015
* Author: justinhammond
*/
#ifndef SECURITY_H_
#define SECURITY_H_
#include <cstdio>
#include <string>
#include <string.h>
#include "Defs.h"
#include "Driver.h"
namespace OpenZWave
{
bool EncyrptBuffer( uint8 *m_buffer, uint8 m_length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 const m_nonce[8], uint8* e_buffer);
bool DecryptBuffer( uint8 *e_buffer, uint8 e_length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 const m_nonce[8], uint8* m_buffer );
bool GenerateAuthentication( uint8 const* _data, uint32 const _length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 *iv, uint8* _authentication);
enum SecurityStrategy
{
SecurityStrategy_Essential = 0,
SecurityStrategy_Supported
};
SecurityStrategy ShouldSecureCommandClass(uint8 CommandClass);
}
#endif /* SECURITY_H_ */
OpenZWave
Definition: Bitfield.h:34
OpenZWave::SecurityStrategy_Supported
Definition: ZWSecurity.h:26
Defs.h
OpenZWave::CommandClass
Base class for all Z-Wave command classes.
Definition: CommandClass.h:46
Driver.h
OpenZWave::EncyrptBuffer
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
OpenZWave::SecurityStrategy
SecurityStrategy
Definition: ZWSecurity.h:23
uint32
unsigned int uint32
Definition: Defs.h:80
OpenZWave::GenerateAuthentication
bool GenerateAuthentication(uint8 const *_data, uint32 const _length, Driver *driver, uint8 const _sendingNode, uint8 const _receivingNode, uint8 *iv, uint8 *_authentication)
Definition: ZWSecurity.cpp:49
OpenZWave::SecurityStrategy_Essential
Definition: ZWSecurity.h:25
OpenZWave::ShouldSecureCommandClass
SecurityStrategy ShouldSecureCommandClass(uint8 CommandClass)
Definition: ZWSecurity.cpp:354
OpenZWave::DecryptBuffer
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
uint8
unsigned char uint8
Definition: Defs.h:74