pubk = PORT_New(SECKEYPublicKey);
pubk = PORT_ZNew(SECKEYPublicKey);
SECKEY_ImportDERPublicKey(SECItem *derKey, CK_KEY_TYPE type){    SECKEYPublicKey *pubk = NULL;    SECStatus rv = SECFailure;    pubk = PORT_New(SECKEYPublicKey);    if(pubk == NULL) {        goto finish;    }    pubk->arena = NULL;    pubk->pkcs11Slot = NULL;    pubk->pkcs11ID = CK_INVALID_HANDLE;    pubk->keyType = type;    if( type == CKK_RSA) {        rv = SEC_ASN1DecodeItem(NULL, pubk, SECKEY_RSAPublicKeyTemplate,                                derKey);    } else if( type == CKK_DSA) {        rv = SEC_ASN1DecodeItem(NULL, pubk, SECKEY_DSAPublicKeyTemplate,                                derKey);    } else {        rv = SECFailure;    }finish:    if( rv != SECSuccess && pubk != NULL) {        PORT_Free(pubk);        pubk = NULL;    }    return pubk;}