GroupData Struct Reference

#include <parms.h>


Detailed Description

Data type used to store parameters for particular Abelian groups.


Public Member Functions

int check () const
 Check parameter generation if seeded, then perform a sanity check on this object.
str oid () const
 Get an ASN.1 DER-encoded OID for the group parameters.

Data Fields

const char * name
int deg
const char * p
const char * order
const char * seed
const char * a
const char * b
const char * Gx
const char * Gy
int start
int genseed


Member Function Documentation

int check (  )  const

Check parameter generation if seeded, then perform a sanity check on this object.

Returns:
0 (success)
non-zero, on error
Remarks:
See Key::loadoid(), Key::checkSeed(), Key::genpub(), Key::check() for specific error codes.

str oid (  )  const

Get an ASN.1 DER-encoded OID for the group parameters.

Returns:
a str containing an ASN.1 OID representing the parameters suitable for passing to Key::loadoid().


Field Documentation

const char* a

DSA: NULL
EC: first coefficient in curve's defining polynomial

const char * b

DSA: NULL
EC: second coefficient in curve's defining polynomial

int deg

DSA: hash function ID (0=SHA, 1=SHA-1)
EC2: degree of field extension
ECP: 0

int genseed

((p-1)/q)-th power is the group generator (NIST examples use 2, ISC uses 7)

const char* Gx

DSA: subgroup generator g
EC: x-coordinate of base point

const char * Gy

DSA: NULL
EC: y-coordinate of base point

const char* name

printable string describing these parameters

const char* order

DSA: q
EC: subgroup order (decimal or hex, if prefixed by "0x")

const char* p

prime modulus or irreducible polynomial (decimal or hex, if prefixed by "0x")

const char* seed

DSA/EC: NIST seed for pseudorandomly-generated parameters, otherwise an empty string

int start

starting value of counter (DSA only)


The documentation for this struct was generated from the following file:
ISC Cryptographic Development Kit - User's Guide
ISC website
Questions? E-mail ISC technical support
Copyright© 2002-2006 Information Security Corp. All rights reserved.