security_adapter.h 599 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __SECURITY_ADAPTER_H__
#define __SECURITY_ADAPTER_H__

#include <stdint.h>
#include <string.h>

#define SECURITY_KEY_SIZE	16

#ifdef __cplusplus
extern "C" {
#endif


void security_adapter_encrypt(
	const uint8_t *secure_key,
	uint8_t *encrypted_payload, 
17
	uint16_t *encrypted_payload_length,
18
	uint8_t *decrypted_payload,
19
	uint16_t decrypted_payload_length);
20
21
22
23
24


void security_adapter_decrypt(
	const uint8_t *secure_key,
	uint8_t *encrypted_payload, 
25
	uint16_t encrypted_payload_length,
26
	uint8_t *decrypted_payload,
27
	uint16_t *decrypted_payload_length);
28
29
30
31
32
33
34


#ifdef __cplusplus
}
#endif

#endif