Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions | Variables
keythi.h File Reference
#include "plarena.h"
#include "pkcs11t.h"
#include "secmodt.h"
#include "prclist.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SECKEYRSAPublicKeyStr
struct  SECKEYPQGParamsStr
struct  SECKEYDSAPublicKeyStr
struct  SECKEYDHParamsStr
struct  SECKEYDHPublicKeyStr
struct  SECKEYECPublicKeyStr
struct  SECKEYFortezzaPublicKeyStr
struct  SECKEYDiffPQGParamsStr
struct  SECKEYPQGDualParamsStr
struct  SECKEYKEAParamsStr
struct  SECKEYKEAPublicKeyStr
struct  SECKEYPublicKeyStr
struct  SEC_PKCS5KeyAndPassword
struct  SECKEYPrivateKeyListNode
struct  SECKEYPrivateKeyList
struct  SECKEYPublicKeyListNode
struct  SECKEYPublicKeyList
union  SECKEYPublicKeyStr.u

Defines

#define CachedAttribute(attribute, setbit)   static const PRUint32 SECKEY_##attribute = 1 << setbit;
#define SECKEY_Attributes_Cached
#define SECKEY_ATTRIBUTES_CACHED(key)   (0 != (key->staticflags & SECKEY_Attributes_Cached))
#define SECKEY_ATTRIBUTE_VALUE(key, attribute)   (0 != (key->staticflags & SECKEY_##attribute))
#define SECKEY_HAS_ATTRIBUTE_SET(key, attribute)

Typedefs

typedef struct SECKEYRSAPublicKeyStr
typedef struct SECKEYPQGParamsStr
typedef struct SECKEYDSAPublicKeyStr
typedef struct SECKEYDHParamsStr
typedef struct SECKEYDHPublicKeyStr
typedef SECItem SECKEYECParams
typedef struct SECKEYECPublicKeyStr
typedef struct SECKEYFortezzaPublicKeyStr
typedef struct SECKEYDiffPQGParamsStr
typedef struct SECKEYPQGDualParamsStr
typedef struct SECKEYKEAParamsStr
typedef struct SECKEYKEAPublicKeyStr
typedef struct SECKEYPublicKeyStr
typedef struct SECKEYPrivateKeyStr

Enumerations

enum  KeyType {
  nullKey = 0, rsaKey = 1, dsaKey = 2, fortezzaKey = 3,
  dhKey = 4, keaKey = 5, ecKey = 6, nullKey = 0,
  rsaKey = 1, dsaKey = 2, fortezzaKey = 3, dhKey = 4,
  keaKey = 5, ecKey = 6
}

Functions

 CachedAttribute (CKA_PRIVATE, 1) struct SECKEYPrivateKeyStr

Variables

SEC_BEGIN_PROTOS const
SEC_ASN1Template 
SECKEY_RSAPublicKeyTemplate []
const SEC_ASN1Template SECKEY_DSAPublicKeyTemplate []
const SEC_ASN1Template SECKEY_DHPublicKeyTemplate []
const SEC_ASN1Template SECKEY_DHParamKeyTemplate []
const SEC_ASN1Template SECKEY_PQGParamsTemplate []
const SEC_ASN1Template SECKEY_DSAPrivateKeyExportTemplate []
SEC_ASN1TemplateChooser NSS_Get_SECKEY_DSAPublicKeyTemplate
SEC_ASN1TemplateChooser NSS_Get_SECKEY_RSAPublicKeyTemplate

Class Documentation

struct SECKEYRSAPublicKeyStr

Definition at line 78 of file keythi.h.

Class Members
PRArenaPool * arena
SECItem modulus
SECItem publicExponent
struct SECKEYPQGParamsStr

Definition at line 90 of file keythi.h.

Class Members
PRArenaPool * arena
SECItem base
SECItem prime
SECItem subPrime
struct SECKEYDSAPublicKeyStr

Definition at line 99 of file keythi.h.

Class Members
SECKEYPQGParams params
SECItem publicValue
struct SECKEYDHParamsStr

Definition at line 110 of file keythi.h.

Class Members
PRArenaPool * arena
SECItem base
SECItem prime
struct SECKEYDHPublicKeyStr

Definition at line 117 of file keythi.h.

Class Members
PRArenaPool * arena
SECItem base
SECItem prime
SECItem publicValue
struct SECKEYECPublicKeyStr

Definition at line 132 of file keythi.h.

Collaboration diagram for SECKEYECPublicKeyStr:
Class Members
SECKEYECParams DEREncodedParams
SECItem publicValue
int size
struct SECKEYFortezzaPublicKeyStr

Definition at line 148 of file keythi.h.

Collaboration diagram for SECKEYFortezzaPublicKeyStr:
Class Members
SECItem clearance
SECItem DSSKey
SECItem DSSpriviledge
int DSSversion
SECItem KEAKey
SECKEYPQGParams keaParams
SECItem KEApriviledge
int KEAversion
unsigned char KMID
SECKEYPQGParams params
struct SECKEYDiffPQGParamsStr

Definition at line 162 of file keythi.h.

Class Members
SECKEYPQGParams DiffDSAParams
SECKEYPQGParams DiffKEAParams
struct SECKEYPQGDualParamsStr

Definition at line 168 of file keythi.h.

Class Members
SECKEYPQGParams CommParams
SECKEYDiffPQGParams DiffParams
struct SECKEYKEAParamsStr

Definition at line 174 of file keythi.h.

Collaboration diagram for SECKEYKEAParamsStr:
Class Members
PLArenaPool * arena
SECItem hash
struct SECKEYKEAPublicKeyStr

Definition at line 180 of file keythi.h.

Class Members
SECKEYKEAParams params
SECItem publicValue
struct SECKEYPublicKeyStr

Definition at line 189 of file keythi.h.

Collaboration diagram for SECKEYPublicKeyStr:
Class Members
PLArenaPool * arena
KeyType keyType
CK_OBJECT_HANDLE pkcs11ID
PK11SlotInfo * pkcs11Slot
union SECKEYPublicKeyStr u
union SECKEYPublicKeyStr u
struct SEC_PKCS5KeyAndPassword

Definition at line 240 of file keythi.h.

Class Members
PK11SymKey * key
SECItem * pwitem
PK11SlotInfo * slot
void * wincx
struct SECKEYPrivateKeyListNode

Definition at line 247 of file keythi.h.

Class Members
SECKEYPrivateKey * key
PRCList links
struct SECKEYPrivateKeyList

Definition at line 252 of file keythi.h.

Class Members
PRArenaPool * arena
PRCList list
struct SECKEYPublicKeyListNode

Definition at line 257 of file keythi.h.

Class Members
SECKEYPublicKey * key
PRCList links
struct SECKEYPublicKeyList

Definition at line 262 of file keythi.h.

Class Members
PRArenaPool * arena
PRCList list
union SECKEYPublicKeyStr.u

Definition at line 194 of file keythi.h.

Class Members
SECKEYDHPublicKey dh
SECKEYDSAPublicKey dsa
SECKEYECPublicKey ec
SECKEYFortezzaPublicKey fortezza
SECKEYKEAPublicKey kea
SECKEYRSAPublicKey rsa

Define Documentation

#define CachedAttribute (   attribute,
  setbit 
)    static const PRUint32 SECKEY_##attribute = 1 << setbit;

Definition at line 205 of file keythi.h.

#define SECKEY_ATTRIBUTE_VALUE (   key,
  attribute 
)    (0 != (key->staticflags & SECKEY_##attribute))
Value:
0x1    /* bit 0 states
                                           whether attributes are cached */

Definition at line 209 of file keythi.h.

#define SECKEY_ATTRIBUTES_CACHED (   key)    (0 != (key->staticflags & SECKEY_Attributes_Cached))
Value:
(0 != (key->staticflags & SECKEY_Attributes_Cached)) ? \
    (0 != (key->staticflags & SECKEY_##attribute)) : \
    PK11_HasAttributeSet(key->pkcs11Slot,key->pkcs11ID,attribute)

Typedef Documentation

typedef struct SECKEYDHParamsStr

Definition at line 115 of file keythi.h.

typedef struct SECKEYDHPublicKeyStr

Definition at line 123 of file keythi.h.

typedef struct SECKEYDiffPQGParamsStr

Definition at line 166 of file keythi.h.

typedef struct SECKEYDSAPublicKeyStr

Definition at line 103 of file keythi.h.

typedef SECItem SECKEYECParams

Definition at line 130 of file keythi.h.

typedef struct SECKEYECPublicKeyStr

Definition at line 143 of file keythi.h.

Definition at line 160 of file keythi.h.

typedef struct SECKEYKEAParamsStr

Definition at line 178 of file keythi.h.

typedef struct SECKEYKEAPublicKeyStr

Definition at line 184 of file keythi.h.

typedef struct SECKEYPQGDualParamsStr

Definition at line 172 of file keythi.h.

typedef struct SECKEYPQGParamsStr

Definition at line 97 of file keythi.h.

typedef struct SECKEYPrivateKeyStr

Definition at line 235 of file keythi.h.

typedef struct SECKEYPublicKeyStr

Definition at line 203 of file keythi.h.

typedef struct SECKEYRSAPublicKeyStr

Definition at line 83 of file keythi.h.


Enumeration Type Documentation

enum KeyType
Enumerator:
nullKey 
rsaKey 
dsaKey 
fortezzaKey 
dhKey 
keaKey 
ecKey 
nullKey 
rsaKey 
dsaKey 
fortezzaKey 
dhKey 
keaKey 
ecKey 

Definition at line 45 of file keythi.h.

             { 
    nullKey = 0, 
    rsaKey = 1, 
    dsaKey = 2, 
    fortezzaKey = 3,
    dhKey = 4, 
    keaKey = 5,
    ecKey = 6
} KeyType;

Function Documentation

CachedAttribute ( CKA_PRIVATE  ,
 
)

Definition at line 210 of file keythi.h.

                                                   : \
    PK11_HasAttributeSet(key->pkcs11Slot,key->pkcs11ID,attribute)

/*
** A generic key structure
*/ 
struct SECKEYPrivateKeyStr {
    PLArenaPool *arena;
    KeyType keyType;
    PK11SlotInfo *pkcs11Slot;      /* pkcs11 slot this key lives in */
    CK_OBJECT_HANDLE pkcs11ID;  /* ID of pkcs11 object */
    PRBool pkcs11IsTemp;    /* temp pkcs11 object, delete it when done */
    void *wincx;            /* context for errors and pw prompts */
    PRUint32 staticflags;       /* bit flag of cached PKCS#11 attributes */

Variable Documentation

Definition at line 96 of file seckey.c.

Definition at line 91 of file seckey.c.

Definition at line 163 of file pk11pk12.c.

Definition at line 78 of file seckey.c.

Definition at line 107 of file nsKeygenHandler.cpp.

Definition at line 71 of file seckey.c.