ANSI X9.63 key derivation function. More...
Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Functions | |
| error_t | x963Kdf (const HashAlgo *hashAlgo, const uint8_t *z, size_t zLen, const uint8_t *sharedInfo, size_t sharedInfoLen, uint8_t *dk, size_t dkLen) |
| ANSI X9.63 key derivation function. More... | |
Detailed Description
ANSI X9.63 key derivation function.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2026 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.
Description
The ANSI X9.63 KDF key derivation function is a simple construct based on a one-way hash function described in American National Standard X9.63
- Version
- 2.6.6
Definition in file x963_kdf.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Definition at line 37 of file x963_kdf.c.
Function Documentation
◆ x963Kdf()
| error_t x963Kdf | ( | const HashAlgo * | hashAlgo, |
| const uint8_t * | z, | ||
| size_t | zLen, | ||
| const uint8_t * | sharedInfo, | ||
| size_t | sharedInfoLen, | ||
| uint8_t * | dk, | ||
| size_t | dkLen | ||
| ) |
ANSI X9.63 key derivation function.
- Parameters
-
[in] hashAlgo Underlying hash function [in] z Shared secret Z [in] zLen Length of the shared secret Z, in bytes [in] sharedInfo Shared information (optional parameter) [in] sharedInfoLen Length of the shared information, in bytes [out] dk Derived keying material [in] dkLen Length of the keying material to be generated, in bytes
- Returns
- Error code
Definition at line 60 of file x963_kdf.c.
