Cryptographic Interface header file for declaring FIPS-186 RNG functions for the Crypto Interface.
More...
Go to the source code of this file.
crypto_interface_fips186.h
Copyright 2019-2024 DigiCert, Inc. All Rights Reserved. Proprietary and Confidential Material.
◆ CRYPTO_INTERFACE_RANDOM_deleteFIPS186Context()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_deleteFIPS186Context |
( |
randomContext ** |
ppRandomContext | ) |
|
- Parameters
-
ppRandomContext | The location of the pointer to the context to be deleted. |
- Returns
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.
◆ CRYPTO_INTERFACE_RANDOM_KSrcGenerator()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_KSrcGenerator |
( |
randomContext * |
pRandomContext, |
|
|
ubyte |
buffer[40] |
|
) |
| |
- Parameters
-
pRandomContext | Pointer to a previously allocated random context. |
buffer | Buffer to hold the resulting generated bytes. |
- Returns
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.
◆ CRYPTO_INTERFACE_RANDOM_newFIPS186Context()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_newFIPS186Context |
( |
randomContext ** |
ppRandomContext, |
|
|
ubyte |
b, |
|
|
const ubyte |
pXKey[], |
|
|
sbyte4 |
seedLen, |
|
|
const ubyte |
pXSeed[] |
|
) |
| |
- Parameters
-
ppRandomContext | The location that will hold the pointer to the new context. |
b | Number of bytes in the X key (pXKey ). |
pXKey | X key value. |
seedLen | Number of bytes in the X seed (pXSeed ). |
pXSeed | X seed value. |
- Returns
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.
◆ CRYPTO_INTERFACE_RANDOM_numberGeneratorFIPS186()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_numberGeneratorFIPS186 |
( |
randomContext * |
pRandomContext, |
|
|
ubyte * |
pRetRandomBytes, |
|
|
sbyte4 |
numRandomBytes |
|
) |
| |
- Parameters
-
pRandomCtx | Pointer to a previously allocated random context. |
pRetRandomBytes | Buffer to hold the resulting pseudo-random bytes. |
numRandomBytes | The number of bytes requested. |
- Returns
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.
◆ CRYPTO_INTERFACE_RANDOM_seedFIPS186Context()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_RANDOM_seedFIPS186Context |
( |
randomContext * |
pRandomCtx, |
|
|
ubyte * |
pSeed, |
|
|
ubyte4 |
seedLen |
|
) |
| |
- Parameters
-
pRandomCtx | Pointer to a previously allocated random context. |
pSeed | Pointer to a buffer containing the new seed material. |
seedLen | Length in bytes of the new seed material, must be between 20 and 64 bytes. |
- Returns
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.