Airoha M0 BLE API
1.0.5.4
encrypt.h
1
/******************************************************************************
2
Copyright (c) Airoha 2016 - All rights reserved
3
4
FILE NAME
5
encrypt.h
6
DESCRIPTION
7
NOTES
8
********************************************************************************/
9
#ifndef HEADER_CHACHA_H
10
#define HEADER_CHACHA_H
11
12
#include <stddef.h>
13
14
/* CRYPTO_chacha_20 encrypts |in_len| bytes from |in| with the given key and
15
* nonce and writes the result to |out|, which may be equal to |in|. The
16
* initial block counter is specified by |counter|. */
17
void
Encrypt (
unsigned
char
*out,
18
const
unsigned
char
*in,
size_t
in_len,
19
const
unsigned
char
key[32],
20
const
unsigned
char
nonce[8],
21
size_t
counter);
22
23
#endif // HEADER_CHACHA_H
1600_Drvers
encrypt.h
Generated by
1.8.13