Skip to content

SECKEYPublicKey

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

Data Structure

struct SECKEYPublicKeyStr {
    PLArenaPool *arena;
    KeyType keyType;
    PK11SlotInfo *pkcs11Slot;
    CK_OBJECT_HANDLE pkcs11ID;
    union {
        SECKEYRSAPublicKey rsa;
        SECKEYDSAPublicKey dsa;
        SECKEYDHPublicKey dh;
        SECKEYKEAPublicKey kea;
        SECKEYFortezzaPublicKey fortezza;
        SECKEYECPublicKey ec;
    } u;
};

typedef struct SECKEYPublicKeyStr SECKEYPublicKey;

Methods

  • SECItem* PK11_MakeIDFromPubKey(SECItem *pubKeyData)

  • SECKEYPublicKey* SECKEY_ConvertToPublicKey(SECKEYPrivateKey *privateKey)

  • SECKEYPublicKey* CERT_ExtractPublicKey(CERTCertificate *cert)

  • SECKEYPublicKeyList* PK11_ListPublicKeysInSlot(PK11SlotInfo *slot, char *nickname)

  • void SECKEY_DestroyPublicKey(SECKEYPublicKey *publicKey)

  • SECKEY_DestroyPublicKeyList

Clone this wiki locally