Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
poly1305.h File Reference
Poly1305 message-authentication code. More...
Go to the source code of this file.
Data Structures | |
struct | Poly1305Context |
Poly1305 context. More... | |
Functions | |
void | poly1305Init (Poly1305Context *context, const uint8_t *key) |
Initialize Poly1305 message-authentication code computation. | |
void | poly1305Update (Poly1305Context *context, const void *data, size_t length) |
Update Poly1305 message-authentication code computation. | |
void | poly1305Final (Poly1305Context *context, uint8_t *tag) |
Finalize Poly1305 message-authentication code computation. | |
void | poly1305ProcessBlock (Poly1305Context *context) |
Process message in 16-byte blocks. |
Detailed Description
Poly1305 message-authentication code.
License
Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneCrypto Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version:
- 1.7.6
Definition in file poly1305.h.
Function Documentation
void poly1305Final | ( | Poly1305Context * | context, |
uint8_t * | tag | ||
) |
Finalize Poly1305 message-authentication code computation.
- Parameters:
-
[in] context Pointer to the Poly1305 context [out] tag Calculated message-authentication code
Definition at line 126 of file poly1305.c.
void poly1305Init | ( | Poly1305Context * | context, |
const uint8_t * | key | ||
) |
Initialize Poly1305 message-authentication code computation.
- Parameters:
-
[in] context Pointer to the Poly1305 context to initialize [in] key Pointer to the 256-bit key
Definition at line 48 of file poly1305.c.
void poly1305ProcessBlock | ( | Poly1305Context * | context ) |
Process message in 16-byte blocks.
- Parameters:
-
[in] context Pointer to the Poly1305 context
Definition at line 212 of file poly1305.c.
void poly1305Update | ( | Poly1305Context * | context, |
const void * | data, | ||
size_t | length | ||
) |
Update Poly1305 message-authentication code computation.
- Parameters:
-
[in] context Pointer to the Poly1305 context [in] data Pointer to the input message [in] length Length of the input message
Definition at line 88 of file poly1305.c.
Generated on Tue Jul 12 2022 17:10:21 by
