RSA BSAFE Crypto-C

Cryptographic Components for C

Search

Entropy Type

This section describes the type used with the entropy gathering AI.

Typedefs

typedef int A_ENTROPY_CB_FUNCTION (POINTER data, unsigned char *buffer, unsigned int len, unsigned int *num, unsigned int *entropy)
 The user-supplied callback function that provides data from other entropy sources. More...


Typedef Documentation

typedef int A_ENTROPY_CB_FUNCTION(POINTER data, unsigned char *buffer, unsigned int len, unsigned int *num, unsigned int *entropy)
 

The user-supplied callback function that provides data from other entropy sources.

Parameters:
data [In] The user's data.
buffer [In] The buffer into which to place entropy Bytes.
len [In] The maximum number of Bytes to put into the buffer.
num [Out] The number of Bytes in the buffer.
entropy [Out] The number of entropy bits in the buffer.
Returns:
0 indicates success.
Other values indicate failure.
See also:
A_ENTROPY_PARAMS.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 068-001001-6210-001-000 - 6.2.1