Skip to content

SECKEYPrivateKey

Endi S. Dewata edited this page Jul 11, 2022 · 2 revisions

Data Structure

/*
** 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 */
};
typedef struct SECKEYPrivateKeyStr SECKEYPrivateKey;

Methods

  • SECItem* PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *privKey)

  • SECKEYPrivateKey* PK11_FindKeyByKeyID(PK11SlotInfo *slot, SECItem *keyID, void *wincx)

  • SECKEYPrivateKeyList* PK11_ListPrivKeysInSlot(PK11SlotInfo *slot, char *nickname, void *wincx)

  • SECKEYPublicKey* SECKEY_ConvertToPublicKey(SECKEYPrivateKey *privateKey)

  • void SECKEY_DestroyPrivateKey(SECKEYPrivateKey *privateKey)

  • SECKEY_DestroyEncryptedPrivateKeyInfo

  • SECKEY_DestroyPrivateKeyInfo

  • SECKEY_DestroyPrivateKeyList