API参考
载入中...
搜索中...
未找到
xmss_hash.h
1
/*
2
* This file is part of the openHiTLS project.
3
*
4
* openHiTLS is licensed under the Mulan PSL v2.
5
* You can use this software according to the terms and conditions of the Mulan PSL v2.
6
* You may obtain a copy of Mulan PSL v2 at:
7
*
8
* http://license.coscl.org.cn/MulanPSL2
9
*
10
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13
* See the Mulan PSL v2 for more details.
14
*/
15
16
#ifndef XMSS_HASH_H
17
#define XMSS_HASH_H
18
19
#include "hitls_build.h"
20
#ifdef HITLS_CRYPTO_XMSS
21
22
#include "xmss_common.h"
23
#include "xmss_local.h"
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
/*
29
* Initialize XMSS hash functions for a given algorithm
30
*
31
* This function sets up the hash function pointers in the XMSS context
32
* based on the algorithm parameters.
33
*
34
* @param ctx XMSS context (will be initialized with hash function pointer)
35
*
36
* @return CRYPT_SUCCESS on success, error code otherwise
37
*/
38
int32_t XmssInitHashFuncs(CryptXmssCtx *ctx);
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif
// HITLS_CRYPTO_XMSS
45
#endif
// XMSS_HASH_H
crypto
xmss
src
xmss_hash.h
制作者
1.15.0