CryptoSys PKI Pro Manual

RNG_UpdateSeedFile

Updates an RNG seed file.

VBA/VB6 Syntax

Public Declare Function RNG_UpdateSeedFile Lib "diCrPKI.dll" (ByVal strSeedFile As String, ByVal nOptions As Long) As Long

nRet = RNG_UpdateSeedFile(strSeedFile, nOptions)

C/C++ Syntax

long __stdcall RNG_UpdateSeedFile(const char *szSeedFile, long nOptions);

Parameters

szSeedFile
[in] specifying the seed file to be updated.
nOptions
[in] option flags: not used in this release. Specify zero.

Returns (VBA/C)

If successful, the return value is zero; otherwise it returns a nonzero error code.

.NET Equivalent

Rng.UpdateSeedFile Method

C++ (STL) Equivalent

static int dipki::Rng::UpdateSeedFile (const std::string &seedFile)

Python Equivalent

static Rng.update_seedfile(seedfilename)

Remarks

This writes a fresh set of random data to the seed file. The seed file must be writable by the user. Use this function at periodic intervals or when exiting your application. If the file does not exist it will be created. Any existing file of the same name will be overwritten without warning.

Example

See the example in RNG_Initialize.

See Also

RNG_Initialize RNG_MakeSeedFile

[Contents] [Index]

[PREV: RNG_TestDRBGVS...]   [Contents]   [Index]   
   [NEXT: RSA_CheckKey...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.