Ascon-CXOF128 customizable extendable-output function. More...
Go to the source code of this file.
Data Structures | |
struct | AsconCxof128Context |
Ascon-CXOF128 algorithm context. More... | |
Functions | |
error_t | asconCxof128Compute (const void *input, size_t inputLen, const char_t *custom, size_t customLen, uint8_t *output, size_t outputLen) |
Digest a message using Ascon-CXOF128. More... | |
error_t | asconCxof128Init (AsconCxof128Context *context, const char_t *custom, size_t customLen) |
Initialize Ascon-CXOF128 context. More... | |
void | asconCxof128Absorb (AsconCxof128Context *context, const void *input, size_t length) |
Absorb data. More... | |
void | asconCxof128Final (AsconCxof128Context *context) |
Finish absorbing phase. More... | |
void | asconCxof128Squeeze (AsconCxof128Context *context, uint8_t *output, size_t length) |
Extract data from the squeezing phase. More... | |
Detailed Description
Ascon-CXOF128 customizable 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.0
Definition in file ascon_cxof128.h.
Function Documentation
◆ asconCxof128Absorb()
void asconCxof128Absorb | ( | AsconCxof128Context * | context, |
const void * | input, | ||
size_t | length | ||
) |
Absorb data.
- Parameters
-
[in] context Pointer to the Ascon-CXOF128 context [in] input Pointer to the buffer being hashed [in] length Length of the buffer
Definition at line 195 of file ascon_cxof128.c.
◆ asconCxof128Compute()
error_t asconCxof128Compute | ( | const void * | input, |
size_t | inputLen, | ||
const char_t * | custom, | ||
size_t | customLen, | ||
uint8_t * | output, | ||
size_t | outputLen | ||
) |
Digest a message using Ascon-CXOF128.
- Parameters
-
[in] input Pointer to the input data [in] inputLen Length of the input data [in] custom Customization string (Z) [in] customLen Length of the customization string [out] output Pointer to the output data [in] outputLen Expected length of the output data
- Returns
- Error code
Definition at line 59 of file ascon_cxof128.c.
◆ asconCxof128Final()
void asconCxof128Final | ( | AsconCxof128Context * | context | ) |
Finish absorbing phase.
- Parameters
-
[in] context Pointer to the Ascon-CXOF128 context
Definition at line 239 of file ascon_cxof128.c.
◆ asconCxof128Init()
error_t asconCxof128Init | ( | AsconCxof128Context * | context, |
const char_t * | custom, | ||
size_t | customLen | ||
) |
Initialize Ascon-CXOF128 context.
- Parameters
-
[in] context Pointer to the Ascon-CXOF128 context to initialize [in] custom Customization string (Z) [in] customLen Length of the customization string, in bytes
- Returns
- Error code
Definition at line 116 of file ascon_cxof128.c.
◆ asconCxof128Squeeze()
void asconCxof128Squeeze | ( | AsconCxof128Context * | context, |
uint8_t * | output, | ||
size_t | length | ||
) |
Extract data from the squeezing phase.
- Parameters
-
[in] context Pointer to the Ascon-CXOF128 context [out] output Output string [in] length Desired output length, in bytes
Definition at line 278 of file ascon_cxof128.c.