19 #ifndef __CRYPTO_INTERFACE_NIST_CTR_DRBG_HEADER__ 20 #define __CRYPTO_INTERFACE_NIST_CTR_DRBG_HEADER__ 43 MOC_SYM(hwAccelDescr hwAccelCtx)
44 randomContext **ppNewContext,
45 const ubyte *pEntropyInput,
48 const ubyte *pPersonalization,
49 ubyte4 personalizationLen
72 MOC_SYM(hwAccelDescr hwAccelCtx)
73 randomContext **ppNewContext,
76 const ubyte *pEntropyInput,
77 ubyte4 entropyInputLen,
80 const ubyte *pPersonalization,
81 ubyte4 personalizationLen
93 MOC_SYM(hwAccelDescr hwAccelCtx)
94 randomContext **ppContext
110 MOC_SYM(hwAccelDescr hwAccelCtx)
111 randomContext *pContext,
112 const ubyte *pEntropyInput,
113 ubyte4 entropyInputLen,
114 const ubyte *pAdditionalInput,
115 ubyte4 additionalInputLen
134 MOC_SYM(hwAccelDescr hwAccelCtx)
135 randomContext *pContext,
136 const ubyte *pAdditionalInput,
137 ubyte4 additionalInputLen,
161 MOC_SYM(hwAccelDescr hwAccelCtx)
162 randomContext *pContext,
164 sbyte4 outputLenBytes
180 MOC_SYM(hwAccelDescr hwAccelCtx)
181 randomContext* pContext,
182 ubyte *pAdditionalInput,
183 ubyte4 additionalInputLen,
202 MOC_SYM(hwAccelDescr hwAccelCtx)
203 randomContext* pContext,
204 ubyte *pAdditionalInput,
205 ubyte4 additionalInputLen,
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_setStateFromSecret(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext *pContext, ubyte *pAdditionalInput, ubyte4 additionalInputLen, ubyte *pSecret, ubyte4 secretLen)
Sets the state of a context to the state within the secret passed in.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_newContext(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext **ppNewContext, const ubyte *pEntropyInput, ubyte4 keyLenBytes, ubyte4 outLenBytes, const ubyte *pPersonalization, ubyte4 personalizationLen)
Creates and seeds a new random context of NIST Counter DRBG type with no derivation function...
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_generate(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext *pContext, const ubyte *pAdditionalInput, ubyte4 additionalInputLen, ubyte *pOutput, ubyte4 outputLenBits)
Generates determinstic random bits from a previously initialized context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_deleteContext(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext **ppContext)
Deletes a NIST Counter DRBG type context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_numberGenerator(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext *pContext, ubyte *pOutput, sbyte4 outputLenBytes)
Generates determinstic random bytes from a previously initialized context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_generateSecret(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext *pContext, ubyte *pAdditionalInput, ubyte4 additionalInputLen, ubyte *pSecret, ubyte4 secretLen)
Generates a "secret" which consist of the internal state, ie the V and key, followed by the determini...
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_newDFContext(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext **ppNewContext, ubyte4 keyLenBytes, ubyte4 outLenBytes, const ubyte *pEntropyInput, ubyte4 entropyInputLen, const ubyte *pNonce, ubyte4 nonceLen, const ubyte *pPersonalization, ubyte4 personalizationLen)
Creates and seeds a new random context of NIST Counter DRBG type with the derivation function...
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_NIST_CTRDRBG_reseed(MOC_SYM(hwAccelDescr hwAccelCtx) randomContext *pContext, const ubyte *pEntropyInput, ubyte4 entropyInputLen, const ubyte *pAdditionalInput, ubyte4 additionalInputLen)
Reseeds a NICE counter DRBG type context.