TrustCore SDK Crypto Interface API reference  version 2.0
crypto_interface_hmac_kdf.h
Go to the documentation of this file.
1 /*
2  * crypto_interface_hmac_kdf.h
3  *
4  * Digicert Cryptographic Interface specification for HMAC-KDF.
5  *
6  * Copyright 2019-2024 DigiCert, Inc. All Rights Reserved.
7  * Proprietary and Confidential Material.
8  *
9  */
10 
17 #ifndef __CRYPTO_INTERFACE_HMAC_KDF_HEADER__
18 #define __CRYPTO_INTERFACE_HMAC_KDF_HEADER__
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
56 MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExtract(
57  MOC_HASH(hwAccelDescr hwAccelCtx)
58  const BulkHashAlgo *pDigest,
59  ubyte *pSalt,
60  ubyte4 saltLen,
61  ubyte *pInputKeyMaterial,
62  ubyte4 inputKeyMaterialLen,
63  ubyte *pOutput,
64  ubyte4 outputLen
65  );
66 
100 MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExtractExt(
101  MOC_HASH(hwAccelDescr hwAccelCtx)
102  const BulkHashAlgo *pDigest,
103  ubyte *pSalt,
104  ubyte4 saltLen,
105  ubyte *pInputKeyMaterial,
106  ubyte4 inputKeyMaterialLen,
107  ubyte *pOutput,
108  ubyte4 outputLen,
109  void *pExtCtx
110  );
111 
139 MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExpand(
140  MOC_HASH(hwAccelDescr hwAccelCtx)
141  const BulkHashAlgo *pDigest,
142  ubyte *pPseudoRandomKey,
143  ubyte4 pseudoRandomKeyLen,
144  ubyte *pContext,
145  ubyte4 contextLen,
146  ubyte *pIv,
147  ubyte4 ivLen,
148  ubyte *pOutput,
149  ubyte4 keyLength
150  );
151 
179 MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExpandExt(
180  MOC_HASH(hwAccelDescr hwAccelCtx)
181  const BulkHashAlgo *pDigest,
182  ubyte *pPseudoRandomKey,
183  ubyte4 pseudoRandomKeyLen,
184  ubyte *pContext,
185  ubyte4 contextLen,
186  ubyte *pIv,
187  ubyte4 ivLen,
188  ubyte *pOutput,
189  ubyte4 keyLength,
190  void *pExtCtx
191  );
192 
193 #ifdef __cplusplus
194 }
195 #endif
196 
197 #endif /* __CRYPTO_INTERFACE_HMAC_KDF_HEADER__ */
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExpandExt(MOC_HASH(hwAccelDescr hwAccelCtx) const BulkHashAlgo *pDigest, ubyte *pPseudoRandomKey, ubyte4 pseudoRandomKeyLen, ubyte *pContext, ubyte4 contextLen, ubyte *pIv, ubyte4 ivLen, ubyte *pOutput, ubyte4 keyLength, void *pExtCtx)
Perform the expand operation for Hmac KDF.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExtractExt(MOC_HASH(hwAccelDescr hwAccelCtx) const BulkHashAlgo *pDigest, ubyte *pSalt, ubyte4 saltLen, ubyte *pInputKeyMaterial, ubyte4 inputKeyMaterialLen, ubyte *pOutput, ubyte4 outputLen, void *pExtCtx)
Perform the extract operation for Hmac KDF.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExpand(MOC_HASH(hwAccelDescr hwAccelCtx) const BulkHashAlgo *pDigest, ubyte *pPseudoRandomKey, ubyte4 pseudoRandomKeyLen, ubyte *pContext, ubyte4 contextLen, ubyte *pIv, ubyte4 ivLen, ubyte *pOutput, ubyte4 keyLength)
Perform the expand operation for Hmac KDF.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_HmacKdfExtract(MOC_HASH(hwAccelDescr hwAccelCtx) const BulkHashAlgo *pDigest, ubyte *pSalt, ubyte4 saltLen, ubyte *pInputKeyMaterial, ubyte4 inputKeyMaterialLen, ubyte *pOutput, ubyte4 outputLen)
Perform the extract operation for Hmac KDF.