CryptoSys PKI Toolkit Manual

RNG_UpdateSeedFile

RNG_UpdateSeedFile updates an RNG seed file.

VB6/VBA Syntax

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

nRet = RNG_UpdateSeedFile(strSeedFile, nOptions)

Parameters

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

C/C++ Syntax

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

Returns (VB6/C)

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

.NET Equivalent

Rng.UpdateSeedFile Method

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.

Example

See the example in RNG_Initialize.

See Also

RNG_Initialize RNG_MakeSeedFile

[Contents] [Index]

[HOME]   [NEXT: RSA_CheckKey...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.