/usr/include/openzwave/ZWSecurity.h is in libopenzwave1.5-dev 1.5+ds-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /*
* 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_ */
|