mirror of
https://github.com/apache/nuttx.git
synced 2026-05-12 01:42:49 +08:00
4a069358b6
Build Documentation / build-html (push) Has been cancelled
According to the feedback from SPDX community we should use LicenseRef-NuttX-PublicDomain because NuttX-PublicDomain is not a valid SPDX id, so it will fail tests for SPDX spec compliance. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/****************************************************************************
|
|
* include/crypto/poly1305.h
|
|
*
|
|
* SPDX-License-Identifier: LicenseRef-NuttX-PublicDomain
|
|
*
|
|
* Public Domain poly1305 from Andrew Moon
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifndef __INCLUDE_CRYPTO_POLY1305_H
|
|
#define __INCLUDE_CRYPTO_POLY1305_H
|
|
|
|
/****************************************************************************
|
|
* Included Files
|
|
****************************************************************************/
|
|
|
|
#include <sys/types.h>
|
|
|
|
#define poly1305_block_size 16
|
|
|
|
typedef struct poly1305_state
|
|
{
|
|
unsigned long r[5];
|
|
unsigned long h[5];
|
|
unsigned long pad[4];
|
|
size_t leftover;
|
|
unsigned char buffer[poly1305_block_size];
|
|
unsigned char final;
|
|
} poly1305_state;
|
|
|
|
void poly1305_begin(FAR poly1305_state *, FAR const unsigned char *);
|
|
void poly1305_update(FAR poly1305_state *,
|
|
FAR const unsigned char *, size_t);
|
|
void poly1305_finish(FAR poly1305_state *, FAR unsigned char *);
|
|
|
|
#endif /* __INCLUDE_CRYPTO_POLY1305_H */
|