RSA BSAFE Cert-C Micro Edition

The power of PKI for the smallest of devices

Information Identifiers

This section lists the identifiers used to set and/or retrieve information from an R_PKEY. The following table details the data types to pass into param when calling R_PKEY_get_info().

Identifier Param Data Type
R_PKEY_INFO_ID_RSA_MOD R_ITEM *
R_PKEY_INFO_ID_RSA_EXP R_ITEM *
R_PKEY_INFO_ID_RSA_PRIV_EXP R_ITEM *
R_PKEY_INFO_ID_RSA_PRIME_N R_ITEM *
R_PKEY_INFO_ID_RSA_EXP_N R_ITEM *
R_PKEY_INFO_ID_RSA_INV_N R_ITEM *
R_PKEY_INFO_ID_RSA_Q R_ITEM *
R_PKEY_INFO_ID_RSA_DMQ1 R_ITEM *
R_PKEY_INFO_ID_RSA_P R_ITEM *
R_PKEY_INFO_ID_RSA_DMP1 R_ITEM *
R_PKEY_INFO_ID_RSA_IQMP R_ITEM *
R_PKEY_INFO_ID_DH_PRIME R_ITEM *
R_PKEY_INFO_ID_DH_GENERATOR R_ITEM *
R_PKEY_INFO_ID_DH_PUB_KEY R_ITEM *
R_PKEY_INFO_ID_DSA_PRIME R_ITEM *
R_PKEY_INFO_ID_DSA_SUBPRIME R_ITEM *
R_PKEY_INFO_ID_DSA_BASE R_ITEM *
R_PKEY_INFO_ID_DSA_PUB_KEY R_ITEM *
R_PKEY_INFO_ID_DSA_PRIV_KEY R_ITEM *
R_PKEY_INFO_ID_R_PKEY_CTX R_PKEY_CTX **
R_PKEY_INFO_ID_R_EITEMS R_EITEMS **
R_PKEY_INFO_ID_FLAG int *
R_PKEY_INFO_ID_DATA void **
R_PKEY_INFO_ID_REFERENCE int *
R_PKEY_INFO_ID_TYPE R_PKEY_TYPE *
R_PKEY_INFO_ID_NUM_BITS int *
R_PKEY_INFO_ID_NUM_PRIMES int *

The following table details the data types to pass into param when calling R_PKEY_set_info().

Identifier Param Data Type
R_PKEY_INFO_ID_RSA_MOD R_ITEM *
R_PKEY_INFO_ID_RSA_EXP R_ITEM *
R_PKEY_INFO_ID_RSA_PRIV_EXP R_ITEM *
R_PKEY_INFO_ID_RSA_PRIME_N R_ITEM *
R_PKEY_INFO_ID_RSA_EXP_N R_ITEM *
R_PKEY_INFO_ID_RSA_INV_N R_ITEM *
R_PKEY_INFO_ID_RSA_Q R_ITEM *
R_PKEY_INFO_ID_RSA_DMQ1 R_ITEM *
R_PKEY_INFO_ID_RSA_P R_ITEM *
R_PKEY_INFO_ID_RSA_DMP1 R_ITEM *
R_PKEY_INFO_ID_RSA_IQMP R_ITEM *
R_PKEY_INFO_ID_DH_PRIME R_ITEM *
R_PKEY_INFO_ID_DH_GENERATOR R_ITEM *
R_PKEY_INFO_ID_DH_PUB_KEY R_ITEM *
R_PKEY_INFO_ID_DSA_PRIME R_ITEM *
R_PKEY_INFO_ID_DSA_SUBPRIME R_ITEM *
R_PKEY_INFO_ID_DSA_BASE R_ITEM *
R_PKEY_INFO_ID_DSA_PUB_KEY R_ITEM *
R_PKEY_INFO_ID_DSA_PRIV_KEY R_ITEM *
R_PKEY_INFO_ID_NUM_PRIMES int *


Defines

#define R_PKEY_INFO_ID_RSA_MOD
 This identifier is used for the retrieval of the RSA modulus associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_EXP
 This identifier is used for the retrieval of the RSA exponent associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_PRIV_EXP
 This identifier is used for the retrieval of the RSA private exponent associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_PRIME_N(n)
 This identifier is used for the retrieval of the nth RSA prime associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_EXP_N(n)
 This identifier is used for the retrieval of the nth RSA exponent associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_INV_N(n)
 This identifier is used for the retrieval of the associated RSA inverse associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_Q
 This identifier is used for the retrieval of the first RSA prime associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_DMQ1
 This identifier is used for the retrieval of the first RSA exponent associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_P
 This identifier is used for the retrieval of the second RSA prime associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_DMP1
 This identifier is used for the retrieval of the second RSA exponent associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_RSA_IQMP
 This identifier is used for the retrieval of the second RSA inverse associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DH_PRIME
 This identifier is used for the retrieval of the Diffie-Hellman prime value associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DH_GENERATOR
 This identifier is used for the retrieval of the Diffie-Hellman parameter value associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DH_PUB_KEY
 This identifier is used for the retrieval of the Diffie-Hellman public key associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DSA_PRIME
 This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) prime associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DSA_SUBPRIME
 This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) sub-prime associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DSA_BASE
 This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) base associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DSA_PUB_KEY
 This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) public key associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DSA_PRIV_KEY
 This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) private key associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_R_PKEY_CTX
 This identifier is used for the retrieval of the R_PKEY_CTX associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_R_EITEMS
 This identifier is used for the retrieval of the R_EITEMS associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_FLAG
 This identifier is used for the retrieval of the flags associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_DATA
 This identifier is used for the retrieval of the implementation data associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_REFERENCE
 This identifier is used for the retrieval of the reference count associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_TYPE
 This identifier is used for the retrieval of the R_PKEY_TYPE associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_NUM_BITS
 This identifier is used for the retrieval of the number of bits associated with the R_PKEY. More...

#define R_PKEY_INFO_ID_NUM_PRIMES
 This identifier is used for the retrieval of the number of primes associated with the R_PKEY. More...


Define Documentation

#define R_PKEY_INFO_ID_DATA
 

This identifier is used for the retrieval of the implementation data associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast void **.

See also:
R_PKEY_get_info().

#define R_PKEY_INFO_ID_DH_GENERATOR
 

This identifier is used for the retrieval of the Diffie-Hellman parameter value associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DH_GENERATOR.

#define R_PKEY_INFO_ID_DH_PRIME
 

This identifier is used for the retrieval of the Diffie-Hellman prime value associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DH_PRIME.

#define R_PKEY_INFO_ID_DH_PUB_KEY
 

This identifier is used for the retrieval of the Diffie-Hellman public key associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DH_PUB_KEY.

#define R_PKEY_INFO_ID_DSA_BASE
 

This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) base associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DSA_BASE.

#define R_PKEY_INFO_ID_DSA_PRIME
 

This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) prime associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DSA_PRIME.

#define R_PKEY_INFO_ID_DSA_PRIV_KEY
 

This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) private key associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DSA_PRIV_KEY.

#define R_PKEY_INFO_ID_DSA_PUB_KEY
 

This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) public key associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DSA_PUB_KEY.

#define R_PKEY_INFO_ID_DSA_SUBPRIME
 

This identifier is used for the retrieval of the Digital Signature Algorithm (DSA) sub-prime associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_DSA_SUBPRIME.

#define R_PKEY_INFO_ID_FLAG
 

This identifier is used for the retrieval of the flags associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast int *.

See also:
R_PKEY_get_info().

#define R_PKEY_INFO_ID_NUM_BITS
 

This identifier is used for the retrieval of the number of bits associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast int *.

See also:
R_PKEY_get_info().

#define R_PKEY_INFO_ID_NUM_PRIMES
 

This identifier is used for the retrieval of the number of primes associated with the R_PKEY. This is valid for two prime and MultiPrime keys. To retrieve this value the parameter reference should be passed in as cast int *.

See also:
R_PKEY_get_info() and R_PKEY_set_info().

#define R_PKEY_INFO_ID_R_EITEMS
 

This identifier is used for the retrieval of the R_EITEMS associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_EITEMS **.

See also:
R_PKEY_get_info().

#define R_PKEY_INFO_ID_R_PKEY_CTX
 

This identifier is used for the retrieval of the R_PKEY_CTX associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_PKEY_CTX **.

See also:
R_PKEY_get_info().

#define R_PKEY_INFO_ID_REFERENCE
 

This identifier is used for the retrieval of the reference count associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast int *.

See also:
R_PKEY_get_info() and R_PKEY_reference_inc().

#define R_PKEY_INFO_ID_RSA_DMP1
 

This identifier is used for the retrieval of the second RSA exponent associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_DMP1.

#define R_PKEY_INFO_ID_RSA_DMQ1
 

This identifier is used for the retrieval of the first RSA exponent associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_DMQ1.

#define R_PKEY_INFO_ID_RSA_EXP
 

This identifier is used for the retrieval of the RSA exponent associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_EXP.

#define R_PKEY_INFO_ID_RSA_EXP_N  
 

This identifier is used for the retrieval of the nth RSA exponent associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_EXP_N.

#define R_PKEY_INFO_ID_RSA_INV_N  
 

This identifier is used for the retrieval of the associated RSA inverse associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_INV_N.

#define R_PKEY_INFO_ID_RSA_IQMP
 

This identifier is used for the retrieval of the second RSA inverse associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_IQMP.

#define R_PKEY_INFO_ID_RSA_MOD
 

This identifier is used for the retrieval of the RSA modulus associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_MOD.

#define R_PKEY_INFO_ID_RSA_P
 

This identifier is used for the retrieval of the second RSA prime associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_P.

#define R_PKEY_INFO_ID_RSA_PRIME_N  
 

This identifier is used for the retrieval of the nth RSA prime associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_PRIME_N.

#define R_PKEY_INFO_ID_RSA_PRIV_EXP
 

This identifier is used for the retrieval of the RSA private exponent associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_PRIV_EXP.

#define R_PKEY_INFO_ID_RSA_Q
 

This identifier is used for the retrieval of the first RSA prime associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_ITEM *.

See also:
R_PKEY_get_info(), R_PKEY_set_info() and R_PKEY_FIELD_ID_RSA_Q.

#define R_PKEY_INFO_ID_TYPE
 

This identifier is used for the retrieval of the R_PKEY_TYPE associated with the R_PKEY. To retrieve this value the parameter reference should be passed in as cast R_PKEY_TYPE *.

See also:
R_PKEY_get_info().


Copyright (c) 1999-2002 RSA Security Inc. All rights reserved. 061-001005-150-001-000-3768 - 1.5