TrustCore SDK Crypto Interface API reference  version 2.0
crypto_interface_fips186.h
Go to the documentation of this file.
1 
14 #ifndef __CRYPTO_INTERFACE_FIPS186_HEADER__
15 #define __CRYPTO_INTERFACE_FIPS186_HEADER__
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
33 MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_KSrcGenerator(
34  randomContext *pRandomContext,
35  ubyte buffer[40]
36  );
37 
54  randomContext **ppRandomContext,
55  ubyte b,
56  const ubyte pXKey[/*b*/],
57  sbyte4 seedLen,
58  const ubyte pXSeed[/*seedLen*/]
59  );
60 
73  randomContext **ppRandomContext
74  );
75 
76 
92  randomContext *pRandomContext,
93  ubyte *pRetRandomBytes,
94  sbyte4 numRandomBytes
95  );
96 
97 
113  randomContext *pRandomCtx,
114  ubyte *pSeed,
115  ubyte4 seedLen
116  );
117 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* __CRYPTO_INTERFACE_FIPS186_HEADER__ */
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_numberGeneratorFIPS186(randomContext *pRandomContext, ubyte *pRetRandomBytes, sbyte4 numRandomBytes)
Generates pseudo-random bytes via a previously allocated FIPS186 Random Context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_KSrcGenerator(randomContext *pRandomContext, ubyte buffer[40])
Uses previously allocated FIPS186 Random Context for KSrc Generation.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_newFIPS186Context(randomContext **ppRandomContext, ubyte b, const ubyte pXKey[], sbyte4 seedLen, const ubyte pXSeed[])
Allocates a new FIPS186 Random Context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_seedFIPS186Context(randomContext *pRandomCtx, ubyte *pSeed, ubyte4 seedLen)
Seed a previously allocated FIPS186 Random Context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_deleteFIPS186Context(randomContext **ppRandomContext)
Deletes a previously allocated FIPS186 Random Context.