RSA BSAFE Crypto-C

Cryptographic Components for C

Search

A_EC_RANDOM_PARAMS Struct Reference

This structure holds the information used by the X9.82 Dual EC Deterministic Random Bit Generator.

Samples:

ecrand.c.

#include <atypes.h>

typedef struct {
  unsigned int strength;
  int prediction_resistance;
  ITEM string;
  unsigned int curve_type;
  int (RSA_CALLING_CONV *hashAlgorithm) PROTO_LIST ((POINTER *));
  POINTER hashAlgParams;
  int mode;
} A_EC_RANDOM_PARAMS;

Data Fields

unsigned int strength
 The required strength of the bits generated.

int prediction_resistance
 A flag to indicate that prediction resistance code is required.

ITEM string
 A Byte array that adds additional seeding to provide uniqueness at instantiation or additional input at reseeding and generating time. More...

unsigned int curve_type
 The type of elliptic curve to use when generating bits.

int( * hashAlgorithm )(POINTER *)
 The hash algorithm to use during the generation of random data. More...

POINTER hashAlgParams
 The parameters of the hash algorithm to use during the generation of random data (currently unused).

int mode
 Operating mode: test/normal see ???


Field Documentation

int( * hashAlgorithm)(POINTER *)
 

The hash algorithm to use during the generation of random data. Set an AI against this field.

ITEM string
 

A Byte array that adds additional seeding to provide uniqueness at instantiation or additional input at reseeding and generating time. The array must be less than 1024 Bytes long.


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