⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgpkeypriv.h

📁 可以实现对邮件的加密解密以及签名
💻 H
📖 第 1 页 / 共 5 页
字号:
							PGPUInt32 altid, PGPBoolean checkAll,
							PGPBoolean revocationonly, PGPBoolean *handled,
							PGPBoolean *changed, PGPBoolean *verified );
PGPError				pgpDoGenerateKey_backRPC( PGPContextRef context,
							PGPUInt32 keydbID, PGPUInt32 masterkeyID,
							PGPByte pkalg, PGPUInt32 bits,
							PGPTime creationDate, PGPUInt16 expirationDays,
							char const * name, PGPSize name_len,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean passphraseIsKey,
							char const * masterpass, PGPSize masterpassLength,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPEventHandlerProcPtr progress,
							PGPUserValue userValue,
							PGPBoolean fastgen, PGPBoolean checkentropy,
							PGPBoolean useToken, PGPUInt32 tokenID,
							PGPUInt32 * adkkeylist, PGPSize adkkeylistsize,
							PGPByte adkclass, PGPUInt32 * rakkeylist,
							PGPSize rakkeylistsize, PGPByte rakclass,
							PGPCipherAlgorithm const * prefalg,
							PGPSize prefalgLength, PGPByte const * prefkeyserv,
							PGPSize prefkeyservLength, PGPUInt32 keyflags,
							PGPBoolean fkeyflags, PGPUInt32 keyservprefs,
							PGPBoolean fkeyservprefs, PGPUInt32 **newobjs,
							PGPSize *newobjsLength, PGPUInt32 * newKey);
PGPError				pgpCountTokens_backRPC (PGPContextRef context,
							PGPUInt32 *numTokens );
PGPError				pgpGetTokenInfo_backRPC (PGPContextRef context,
                            PGPUInt32   tokNumber, PGPTokenInfo *tokenInfo );
PGPError				pgpDeleteKeyOnToken_backRPC( PGPContextRef context, 
							PGPUInt32 keydbID, 
							const PGPKeyID *keyID, PGPUInt32 tokenNumber, 
							PGPByte const *pin, PGPSize pinLen );
PGPError				pgpWipeToken_backRPC (PGPContextRef context,
							PGPUInt32 tokNumber, PGPByte const *passphrase,
							PGPSize passphraseLength );
PGPError				pgpFormatToken_backRPC (PGPContextRef context,
							PGPUInt32 tokNumber, 
							PGPByte const *	adminPin,	PGPSize	adminPinLen, 
							PGPByte const *	newUserPin,	PGPSize	newUserPinLen );
PGPError				pgpTokenPassphraseIsValid_backRPC (
							PGPContextRef context,
							PGPUInt32 tokNumber, PGPByte const *passphrase,
							PGPSize passphraseLength );
PGPError				pgpCopyKeyToToken_backRPC (PGPContextRef context,
							PGPUInt32 id, PGPUInt32 tokNumber,
							PGPBoolean isMaster,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase, char const * PIN,
							PGPSize PINlength, PGPUInt32 cacheTimeOut,
							PGPBoolean cacheGlobal);
PGPError                pgpTokenImportX509_backRPC( PGPContextRef context,
                            const PGPByte *keyID, 
                            const PGPByte *userID, PGPSize userIDlen, 
                            const PGPByte *x509, PGPSize x509len,
                            const PGPByte *password, PGPSize passwordLength );
PGPError                pgpTokenPutKeyContainer_backRPC( 
                            PGPContextRef context, const PGPByte *keyID, 
                            const PGPByte *password, PGPSize passwordSize, 
                            const PGPByte *cont, PGPSize contSize );
PGPError				pgpTokenGetKeyContainer_backRPC( PGPContextRef context,
							const PGPByte *keyID,
							const PGPByte *password, PGPSize passwordLen,		
							PGPByte	**contOut, PGPSize *contOutSize );
PGPError				pgpSetPKCS11DrvFile_backRPC(const PGPByte *module );
PGPError				pgpAddUserID_backRPC (PGPContextRef context,
							PGPUInt32 id, PGPBoolean isAttribute,
							PGPAttributeType attributeType,
							char const * userIDData, PGPSize userIDLength,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase, PGPUInt32 cacheTimeOut,
							PGPBoolean cacheGlobal, PGPUInt32 **newobjs,
							PGPSize *newobjsLength );
PGPError				 pgpCertifyUserID_backRPC(PGPContextRef context,
							PGPUInt32 useridid, PGPUInt32 certifying_keyid,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase, PGPUInt32 cacheTimeOut,
							PGPBoolean cacheGlobal, PGPBoolean exportable,
							PGPTime creationDate, PGPUInt32 expiration,
							PGPByte trustDepth, PGPByte trustValue,
							char const * sRegExp, PGPSize sRegExpLength,
							PGPUInt32 **newobjs, PGPSize *newobjsLength );
PGPError				pgpCertifyPrimaryUserID_backRPC (PGPContextRef ctxt,
							PGPUInt32 useridid, const char *passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 **newobjs, PGPSize *newobjsLength);
PGPError				pgpRevokeSig_backRPC (PGPContextRef context,
							PGPUInt32 sigid, char const * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 **newobjs, PGPSize *newobjsLength);
PGPError				pgpRevokeKey_backRPC (PGPContextRef context,
							PGPUInt32 key_id, char const * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 **newobjs, PGPSize *newobjsLength);
PGPError				pgpDoChangePassphrase_backRPC (PGPContextRef context,
							PGPUInt32 keydbid, PGPUInt32 key_id,
							PGPUInt32 masterkey_id, const char *oldphrase,
							PGPSize oldphraseLength, const char *newphrase,
							PGPSize newphraseLength,
							PGPBoolean newPassphraseIsKey,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal);
PGPError				pgpPassphraseIsValid_backRPC( PGPContextRef context,
							PGPUInt32 key_id, const char * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPBoolean * isValid);
PGPError				pgpPurgePassphraseCache_backRPC(PGPContextRef context);
PGPError				pgpSetKeyTrust_backRPC( PGPContextRef context,
							PGPUInt32 key_id, PGPUInt32 trust );
PGPError				pgpGetPasskeyBuffer_backRPC( PGPContextRef context,
							PGPUInt32 key_id, char const * passphrase,
							PGPSize passphraseLength, PGPByte **passkeyBuffer,
							PGPSize *passkeyBufferLength );
PGPError				pgpAddKeyOptions_backRPC (PGPContextRef context,
							PGPUInt32 key_id, const char * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 *raklist, PGPSize raklistsize,
							PGPUInt32 rakclass, PGPUInt32 **newobjs,
							PGPSize *newobjsLength);
PGPError				pgpUpdateKeyOptions_backRPC (PGPContextRef context,
							PGPUInt32 key_id, const char * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							const PGPCipherAlgorithm *prefalg,
							PGPSize prefalgLength, const PGPByte *prefkeyserv,
							PGPSize prefkeyservLength, PGPUInt32 keyflags,
							PGPBoolean fkeyflags, PGPUInt32 keyservprefs,
							PGPBoolean fkeyservprefs, PGPUInt32 **newobjs,
							PGPSize *newobjsLength );
PGPError				pgpKeyDBAddObject_backRPC (PGPContextRef context,
							PGPUInt32 kdb_id, PGPUInt32 obj_id,
							PGPUInt32 **newobjs, PGPSize *newobjsLength,
							PGPUInt32 *pnewobj);
PGPError				pgpKeyDBRemoveObject_backRPC (PGPContextRef context,
							PGPUInt32 kdb_id, PGPUInt32 obj_id);
PGPError				pgpImportKeyBinary_backRPC(PGPContextRef cdkContext,
							const PGPByte *buffer, PGPSize length,
							PGPUInt32 *kdbid, PGPUInt32 *numKeys,
							PGPUInt32 **keyArray, PGPSize *keyArraySize );
PGPError				pgpGlobalRandomPoolAddState_backRPC(
							PGPBoolean addKeyState, PGPInt32 keyEvent,
							PGPBoolean addMouseState,
							PGPBoolean addSystemState );
PGPError				pgpGlobalRandomPoolGetInfo_backRPC( PGPUInt32 *entropy,
							PGPUInt32 *size, PGPUInt32 *minEntropy,
							PGPBoolean *hasMinEntropy,
							PGPBoolean *hasIntelRNG );
PGPError				pgpRandomGetBytesEntropy_backRPC(
							PGPContextRef context, PGPUInt32 requestBytes,
							PGPUInt32 entropyBits, PGPByte **randBuf,
							PGPSize *randBufLen );
PGPError				pgpRandomAddBytes_backRPC( PGPContextRef context,
							PGPByte const *buf, PGPSize buflen );
PGPError				pgpRandomStir_backRPC( PGPContextRef context );
PGPError				pgpCopyKeys_backRPC( PGPContextRef context,
							PGPUInt32 srcid, PGPUInt32 dstid,
							PGPUInt32 *keylist, PGPSize keylistsize,
							PGPBoolean neednewkeylist, PGPUInt32 **newkeylist,
							PGPSize *newkeylistsize );
PGPError				pgpSetRandSeedFile_backRPC( PFLFileSpecRef randFile );
PGPError				pgpCreateKeypair_backRPC( PGPContextRef context,
							PGPUInt32 keydbID, PGPByte * seckeyBuf,
							PGPSize seckeySize, PGPByte * keyspecBuf,
							PGPSize keyspecSize, char const * name,
							PGPSize name_len,
							PGPUInt32 * adklist, PGPSize adklistsize,
							PGPByte adkclass,
							PGPUInt32 * raklist, PGPSize raklistsize,
							PGPByte rakclass,
							char const * passphrase,
							PGPSize passphraseLength, PGPBoolean
							passphraseIsKey, PGPUInt32 cacheTimeOut,
							PGPBoolean cacheGlobal, PGPUInt32 **
							newobjs, PGPSize * newobjslength,
							PGPUInt32 * newkeyid );
PGPError				pgpCreateSubkeypair_backRPC( PGPContextRef context,
							PGPUInt32 masterkeyID, PGPByte *
							seckeyBuf, PGPSize seckeySize,
							PGPByte * keyspecBuf,
							PGPSize keyspecSize, char const * passphrase,
							PGPSize passphraseLength,
							PGPBoolean passphraseIsKey, PGPUInt32
							cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 ** newobjs, PGPSize *
							newobjslength, PGPUInt32 * newkeyid );
PGPError				pgpCountCachedPassphrases_backRPC(
							PGPContextRef context, PGPUInt32 *pnLocal,
							PGPUInt32 *pnGlobal, PGPUInt32 *pnOtherLocal );
PGPError				pgpPurgeKeyDBCache_backRPC( PGPContextRef context );
PGPError				pgpCacheKeyDB_backRPC( PGPContextRef context,
							PGPUInt32 keydbID, PGPUInt32 timeoutSeconds );
							
#if PGP_MACINTOSH && PGPSDK_BACKEND
#pragma export off
#endif


/* pgpKeyDB.c */
						
PGPBoolean				pgpKeyDBIsMutable (PGPKeyDBRef kdb);
PGPBoolean				pgpKeyDBIsDirty (PGPKeyDBRef kdb);
PGPBoolean				pgpKeyDBUsesTokens (PGPKeyDBRef kdb);
void					pgpKeyDBChanged (PGPKeyDBRef kdb, PGPBoolean redolist);
PGPKeyDBRef				pgpKeyDBNextKeyDB (PGPKeyDBRef kdb);
PGPError				pgpKeyDBAddObject (PGPKeyDBRef kdb,
							PGPKeyDBObj *obj, PGPKeyDBObjRef *newobj);
PGPError				pgpKeyDBAddObject_internal (PGPKeyDBRef kdb,
							PGPKeyDBObj *obj, PGPKeyDBObjRef *pnewobj);
PGPError				pgpKeyDBRemoveObject (PGPKeyDBRef kdb,
							PGPKeyDBObj *obj);
PGPError				pgpKeyDBRemoveObject_internal (PGPKeyDBRef kdb,
							PGPKeyDBObj *obj);
PGPError				pgpKeyDBFlush_internal (PGPKeyDBRef kdb,
							PGPKeySetRef changedSet );
PGPBoolean				pgpKeyDBIsValid( PGPKeyDB const * keyDB);
void					pgpKeyDBDestroy_internal (PGPKeyDBRef kdb);
void					pgpExpireKeyDBCache( PGPContextRef context );
PGPBoolean				pgpIsKeyDBCached( PGPContextRef context );
PGPError				pgpPurgeKeyDBCache_internal( PGPContextRef context );
PGPError				pgpCacheKeyDB_internal( PGPKeyDBRef keydb,
							PGPUInt32 timeoutSeconds );
PGPKeySet *				pgpKeyDBPeekRootSet( PGPKeyDB *kdb );
PGPError				pgpKeyDBError( PGPKeyDB *kdb );
void					pgpKeyDBSetError( PGPKeyDB *kdb, PGPError err );
PGPBoolean				pgpFrontEndKeyDB( PGPKeyDBRef kdb );
void					pgpSetPendingNotify( PGPKeySetRef changeset,
							PGPKeyDBObjRef changeobj, PGPKeySetRef newset,
							PGPKeyDBObjRef newobj );
PGPError				pgpUpdateKeyDB_internal( PGPKeyDB *db,
							PGPKeySetRef newSet, PGPKeySetRef changeSet );
void					pgpSetBackendUpdateNeeded( void );
void					pgpKeyDBBackendUpdate( void );
PGPKeyDBRef				pgpCreateKeyDBFromKeyRings (PGPContextRef context,
							PFLFileSpecRef pubFileRef,
							PFLFileSpecRef privFileRef,
							PGPFlags openFlags, PGPError *error);
PGPKeyDBRef				pgpCreateKeyDBFromMemory (PGPContextRef context,
							const void *buf, PGPSize buflen, PGPError *error);
PGPError				pgpNewKeyDB_internal( PGPContextRef context,
							PGPKeyDBRef *keydb );
PGPError				pgpNewFrontEndKeyDB( PGPContextRef context,
							PGPUInt32 kdbid, PGPUInt32 *keyArray,
							PGPUInt32 keyCount, PGPKeyDBRef *keydb );


/* pgpKeyAdd.c */

PGPByte *				pgpKeyDBObjToPubData( PGPKeyDBObj *key, PGPSize *plen);
PGPKeyDBObj *			pgpFindMatchingChild( PGPKeyDBObj *parent,
							PGPByte const *buf, PGPSize len );
PGPKeyDBObj *
						pgpFindPairedX509Key( PGPKeyDBObj *cakey,
							PGPKeyDBRef kdb );
PGPKeyDBObj *			pgpAddKey( PGPInt32 pktbyte, PGPByte const *buf,
							PGPSize len, PGPKeyDB *kdb, PGPKeyDBObj *parent,
							PGPBoolean trusted, PGPError *err);
PGPKeyDBObj *			pgpAddUserID( PGPInt32 pktbyte, PGPByte const *buf,
							PGPSize len, PGPKeyDB *kdb, PGPKeyDBObj *parent,
							PGPError *err );
PGPKeyDBObj *			pgpAddSig( PGPInt32 pktbyte, PGPByte const *buf,
							PGPSize len, PGPKeyDB *kdb, PGPKeyDBObj *parent,
							PGPError *err);
PGPKeyDBObj *			pgpAddCRL( PGPInt32 pktbyte, PGPByte const *buf,
							PGPSize len, PGPKeyDB *kdb, PGPKeyDBObj *parent,
							PGPError *err);
PGPKeyDBObj *			pgpAddUnknown( PGPInt32 pktbyte, PGPByte const *buf,
							PGPSize len, PGPKeyDB *kdb, PGPKeyDBObj *parent,
							PGPError *err );
PGPKeyDBObj *			pgpAddObject( PGPByte const *buf, PGPSize len,
							PGPKeyDB *kdb, PGPKeyDBObj *parent,
							PGPBoolean trusted, PGPError *err );
PGPError				pgpKeyCleanup( PGPKeyDBObj *key, PGPBoolean trusted );
void					pgpCopyObjectTrust( PGPKeyDBObj *oldobj,
							PGPKeyDBObj *newobj );
PGPError				pgpReadKeyFile (PGPKeyDB *kdb, PGPFile *f,
							PGPBoolean trusted);
PGPKeyDBObj *			pgpCreateKeypair (PGPEnv const *env, PGPKeyDB *db,
							PGPSecKey *seckey, PGPKeySpec *keyspec,
							char const *name, size_t namelen,
							PGPKeySet const *adkset, PGPByte adkclass,
							PGPKeySet const *rakset, PGPByte rakclass,
							PGPByte const *passphrase, PGPSize pplen,
							PGPBoolean hashedPhrase,
							PGPError *error);
PGPKeyDBObj *			pgpCreateSubkeypair (PGPKeyDBObj *keyobj,
							PGPEnv const *env,
							PGPSecKey *subseckey, PGPKeySpec *keyspec,
							PGPByte const *passphrase, PGPSize pplen,
							PGPBoolean hashedPhrase, PGPError *error);
PGPError				pgpSignObject( PGPKeyDBObj *obj, PGPSigSpec *spec );
PGPKeyDBObj *			pgpCreateKey(PGPKeyDB *db, PGPKeyDBObj *parent,
							PGPBoolean secret, PGPPubKey const *pkey,
							PGPSecKey const *skey, PGPKeySpec const *ks,
							PGPByte pkalg);
PGPKeyDBObj *			pgpCreateUserID( PGPKeyDB *db, PGPKeyDBObj *key,
							PGPByte const *data, PGPSize len );
PGPKeyDBObj *			pgpCreateAttribute( PGPKeyDB *db, PGPKeyDBObj *key,
							PGPByte attributeType, PGPByte const *data,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -