22#ifndef CRYPT_EAL_KDF_H
23#define CRYPT_EAL_KDF_H
27#include "crypt_algid.h"
28#include "crypt_types.h"
29#include "bsl_params.h"
35typedef struct EalKdfCtx CRYPT_EAL_KdfCtx;
37#define CRYPT_EAL_KdfCTX CRYPT_EAL_KdfCtx
CRYPT_KDF_AlgId
定义 crypt_algid.h:382
void CRYPT_EAL_KdfFreeCtx(CRYPT_EAL_KdfCtx *ctx)
Free the context of kdf
int32_t CRYPT_EAL_KdfSetParam(CRYPT_EAL_KdfCtx *ctx, const BSL_Param *param)
Set the parameters of Algorithm kdf
int32_t CRYPT_EAL_KdfDerive(CRYPT_EAL_KdfCtx *ctx, uint8_t *key, uint32_t keyLen)
Derived key
CRYPT_EAL_KdfCtx * CRYPT_EAL_KdfDupCtx(const CRYPT_EAL_KdfCtx *from)
Dup the kdf context.
int32_t CRYPT_EAL_KdfDeInitCtx(CRYPT_EAL_KdfCtx *ctx)
Deinitialize the context of kdf
int32_t CRYPT_EAL_KdfCopyCtx(CRYPT_EAL_KdfCtx *to, const CRYPT_EAL_KdfCtx *from)
Copy the context of kdf Note: When using HKDF for key derivation in CRYPT_KDF_HKDF_MODE_EXTRACT mode,...
CRYPT_EAL_KdfCtx * CRYPT_EAL_ProviderKdfNewCtx(CRYPT_EAL_LibCtx *libCtx, int32_t algId, const char *attrName)
Generate kdf handles in the providers
bool CRYPT_EAL_KdfIsValidAlgId(CRYPT_KDF_AlgId id)
Check whether the given kdf algorithm ID is valid.
CRYPT_EAL_KdfCtx * CRYPT_EAL_KdfNewCtx(CRYPT_KDF_AlgId algId)
Generate kdf handles