Ascon-XOF128 extendable-output function. More...
Go to the source code of this file.
| Data Structures | |
| struct | AsconXof128Context | 
| Ascon-XOF128 algorithm context.  More... | |
| Macros | |
| #define | ASCON_XOF128_XOF_ALGO (&asconXof128XofAlgo) | 
| Functions | |
| error_t | asconXof128Compute (const void *input, size_t inputLen, uint8_t *output, size_t outputLen) | 
| Digest a message using Ascon-XOF128.  More... | |
| void | asconXof128Init (AsconXof128Context *context) | 
| Initialize Ascon-XOF128 context.  More... | |
| void | asconXof128Absorb (AsconXof128Context *context, const void *input, size_t length) | 
| Absorb data.  More... | |
| void | asconXof128Final (AsconXof128Context *context) | 
| Finish absorbing phase.  More... | |
| void | asconXof128Squeeze (AsconXof128Context *context, uint8_t *output, size_t length) | 
| Extract data from the squeezing phase.  More... | |
| Variables | |
| const uint8_t | ASCON_XOF128_OID [1] | 
| const XofAlgo | asconXof128XofAlgo | 
Detailed Description
Ascon-XOF128 extendable-output function.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 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
- 2.5.4
Definition in file ascon_xof128.h.
Macro Definition Documentation
◆ ASCON_XOF128_XOF_ALGO
| #define ASCON_XOF128_XOF_ALGO (&asconXof128XofAlgo) | 
Definition at line 39 of file ascon_xof128.h.
Function Documentation
◆ asconXof128Absorb()
| void asconXof128Absorb | ( | AsconXof128Context * | context, | 
| const void * | input, | ||
| size_t | length | ||
| ) | 
Absorb data.
- Parameters
- 
  [in] context Pointer to the Ascon-XOF128 context [in] input Pointer to the buffer being hashed [in] length Length of the buffer 
Definition at line 152 of file ascon_xof128.c.
◆ asconXof128Compute()
| error_t asconXof128Compute | ( | const void * | input, | 
| size_t | inputLen, | ||
| uint8_t * | output, | ||
| size_t | outputLen | ||
| ) | 
Digest a message using Ascon-XOF128.
- Parameters
- 
  [in] input Pointer to the input data [in] inputLen Length of the input data [out] output Pointer to the output data [in] outputLen Expected length of the output data 
- Returns
- Error code
Definition at line 74 of file ascon_xof128.c.
◆ asconXof128Final()
| void asconXof128Final | ( | AsconXof128Context * | context | ) | 
Finish absorbing phase.
- Parameters
- 
  [in] context Pointer to the Ascon-XOF128 context 
Definition at line 196 of file ascon_xof128.c.
◆ asconXof128Init()
| void asconXof128Init | ( | AsconXof128Context * | context | ) | 
Initialize Ascon-XOF128 context.
- Parameters
- 
  [in] context Pointer to the Ascon-XOF128 context to initialize 
Definition at line 122 of file ascon_xof128.c.
◆ asconXof128Squeeze()
| void asconXof128Squeeze | ( | AsconXof128Context * | context, | 
| uint8_t * | output, | ||
| size_t | length | ||
| ) | 
Extract data from the squeezing phase.
- Parameters
- 
  [in] context Pointer to the Ascon-XOF128 context [out] output Output string [in] length Desired output length, in bytes 
Definition at line 235 of file ascon_xof128.c.
Variable Documentation
◆ ASCON_XOF128_OID
| 
 | extern | 
Definition at line 48 of file ascon_xof128.c.
◆ asconXof128XofAlgo
| 
 | extern | 
Definition at line 51 of file ascon_xof128.c.
