security_adapter.h 595 Bytes
Newer Older
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
34
#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, 
	uint8_t *encrypted_payload_length,
	uint8_t *decrypted_payload,
	uint8_t decrypted_payload_length);


void security_adapter_decrypt(
	const uint8_t *secure_key,
	uint8_t *encrypted_payload, 
	uint8_t encrypted_payload_length,
	uint8_t *decrypted_payload,
	uint8_t *decrypted_payload_length);


#ifdef __cplusplus
}
#endif

#endif