Visit Mozilla.org

FC GenerateRandom

From MDC


[edit] Name

FC_GenerateRandom - generate a random number.

[edit] Syntax

CK_RV FC_GenerateRandom(
  CK_SESSION_HANDLE hSession,
  CK_BYTE_PTR pRandomData,
  CK_ULONG ulRandomLen
);

[edit] Parameters

hSession
[in] session handle.
pRandomData
[out] pointer to the location to receive the random data.
ulRandomLen
[in] length of the buffer in bytes.

[edit] Description

FC_GenerateRandom generates random data of the specified length.

A user may call FC_GenerateRandom without logging into the token (to assume the NSS User role).

[edit] Return value

[edit] Examples

[edit] See also