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

📄 pgpkeypriv.h

📁 可以实现对邮件的加密解密以及签名
💻 H
📖 第 1 页 / 共 5 页
字号:
							PGPSize keylistsize, PGPUInt32 altid,
							PGPBoolean checkAll, PGPUInt32 **changedkeylist,
							PGPSize *changedkeylistsize );
PGPError				pgpPrepareToCheckKeyRingSigs_back(
							PGPContextRef context, PGPUInt32 setid,
							PGPUInt32 *keylist, PGPSize keylistsize,
							PGPUInt32 altid, PGPBoolean checkAll,
							PGPUInt32 *nsigs, PGPUInt32 **changedkeylist,
							PGPSize *changedkeylistsize );
PGPError				pgpCheckSig_back( PGPContextRef context,
							PGPUInt32 setid, PGPUInt32 objid,
							PGPUInt32 altid, PGPBoolean checkAll,
							PGPBoolean revocationonly, PGPBoolean *handled,
							PGPBoolean *changed, PGPBoolean *verified );
PGPError				pgpDoGenerateKey_back( 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_back (PGPContextRef context,
							PGPUInt32 *numTokens );
PGPError				pgpGetTokenInfo_back (PGPContextRef context,
							PGPUInt32 tokNumber, PGPTokenInfo *tokenInfo );
PGPError				pgpDeleteKeyOnToken_back (PGPContextRef context, 
							PGPUInt32 keydbID, const PGPKeyID *keyID, 
							PGPUInt32 tokNumber, 
							PGPByte const *pin, PGPSize pinLen );
PGPError				pgpWipeToken_back (PGPContextRef context,
							PGPUInt32 tokNumber, PGPByte const *passphrase,
							PGPSize passphraseLength );
PGPError				pgpFormatToken_back (PGPContextRef context,
							PGPUInt32 tokNumber, 
							PGPByte const *	adminPin,	PGPSize	adminPinLen, 
							PGPByte const *	newUserPin,	PGPSize	newUserPinLen );
PGPError				pgpTokenPassphraseIsValid_back (PGPContextRef context,
							PGPUInt32 tokNumber, PGPByte const *passphrase,
							PGPSize passphraseLength );
PGPError                pgpSetPKCS11DrvFile_back(const PGPByte *module );
PGPError				pgpCopyKeyToToken_back (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_back (PGPContextRef	context,
	                        const PGPByte *keyID, 
                            const PGPByte *userID, PGPSize userIDlen, 
                            const PGPByte *x509, PGPSize x509len,
                            const PGPByte *password, PGPSize passwordLength );
PGPError                pgpTokenPutKeyContainer_back( 
                            PGPContextRef context, const PGPByte *keyID, 
                            const PGPByte *password, PGPSize passwordLen, 
                            const PGPByte *cont, PGPSize contSize );
PGPError				pgpTokenGetKeyContainer_back( PGPContextRef context,
							const PGPByte *keyID,
							const PGPByte *password, PGPSize passwordLen, 
							PGPByte	**contOut, PGPSize *contOutSize );
PGPError				pgpAddUserID_back (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_back(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_back (PGPContextRef ctxt,
							PGPUInt32 useridid, const char *passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 **newobjs, PGPSize *newobjsLength);
PGPError				pgpRevokeSig_back (PGPContextRef context,
							PGPUInt32 sigid, char const * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 **newobjs, PGPSize *newobjsLength);
PGPError				pgpRevokeKey_back (PGPContextRef context,
							PGPUInt32 key_id, char const * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPUInt32 **newobjs, PGPSize *newobjsLength);
PGPError				pgpDoChangePassphrase_back (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_back( PGPContextRef context,
							PGPUInt32 key_id, const char * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPBoolean * isValid);
PGPError				pgpPurgePassphraseCache_back( PGPContextRef context );
PGPError				pgpCountCachedPassphrases_back( PGPContextRef context,
							PGPUInt32 *pnLocal, PGPUInt32 *pnGlobal,
							PGPUInt32 *pnOtherLocal );
PGPError				pgpSetKeyTrust_back( PGPContextRef context,
							PGPUInt32 key_id, PGPUInt32 trust );
PGPError				pgpGetPasskeyBuffer_back( PGPContextRef context,
							PGPUInt32 key_id, char const * passphrase,
							PGPSize passphraseLength, PGPByte **passkeyBuffer,
							PGPSize *passkeyBufferLength );
PGPError				pgpAddKeyOptions_back (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_back (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_back (PGPContextRef context,
							PGPUInt32 kdb_id, PGPUInt32 obj_id,
							PGPUInt32 **newobjs, PGPSize *newobjsLength,
							PGPUInt32 *pnewobj);
PGPError				pgpKeyDBRemoveObject_back (PGPContextRef context,
							PGPUInt32 kdb_id, PGPUInt32 obj_id);
PGPError				pgpImportKeyBinary_back(PGPContextRef cdkContext,
							const PGPByte *buffer, PGPSize length,
							PGPUInt32 *kdbid, PGPUInt32 *numKeys,
							PGPUInt32 **keyArray, PGPSize *keyArraySize );
PGPError				pgpGlobalRandomPoolAddState_back(
							PGPBoolean addKeyState, PGPInt32 keyEvent,
							PGPBoolean addMouseState,
							PGPBoolean addSystemState );
PGPError				pgpGlobalRandomPoolGetInfo_back( PGPUInt32 *entropy,
							PGPUInt32 *size, PGPUInt32 *minEntropy,
							PGPBoolean *hasMinEntropy,
							PGPBoolean *hasIntelRNG );
PGPError				pgpRandomGetBytesEntropy_back( PGPContextRef context,
							PGPUInt32 requestBytes, PGPUInt32 entropyBits,
							PGPByte **randBuf, PGPSize *randBufLen );
PGPError				pgpRandomAddBytes_back( PGPContextRef context,
							PGPByte const *buf, PGPSize buflen );
PGPError				pgpRandomStir_back( PGPContextRef context );
PGPError				pgpCopyKeys_back( PGPContextRef context,
							PGPUInt32 srcid, PGPUInt32 dstid,
							PGPUInt32 *keylist, PGPSize keylistsize,
							PGPBoolean neednewkeylist, PGPUInt32 **newkeylist,
							PGPSize *newkeylistsize );
PGPError				pgpSetRandSeedFile_back( PFLFileSpecRef randFile );
PGPError				pgpCreateKeypair_back( 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_back( 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				pgpPurgeKeyDBCache_back( PGPContextRef context );
PGPError				pgpCacheKeyDB_back( PGPContextRef context,
							PGPUInt32 keydbID, PGPUInt32 timeoutSeconds );



/* pgpRPCKeyBack.c */
#if PGP_MACINTOSH && PGPSDK_BACKEND
#pragma export on
#endif
PGPError				pgpFetchObjectData_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPByte **bufptr, PGPSize *buflen );
PGPError				pgpGetKeyByKeyID_backRPC( PGPContextRef context,
							PGPUInt32 dbid, PGPKeyID const *keyIDIn,
							PGPBoolean dummyOK, PGPBoolean deletedOK,
							PGPUInt32 *outID );
PGPError				pgpKeyEncrypt_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPByte const *inbuf,
							PGPSize inbuflen, PGPPublicKeyMessageFormat format,
							PGPByte **outbuf, PGPSize *outbuflen );
PGPError				pgpKeyDecrypt_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPByte const *passphrase,
							PGPSize pplen, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPByte const *inbuf, PGPSize inbuflen,
							PGPPublicKeyMessageFormat format,
							PGPByte **outbuf, PGPSize *outbuflen );
PGPInt32				pgpKeyVerify_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPByte const *inbuf,
							PGPSize inbuflen, PGPHashAlgorithm hashalg,
							PGPByte const *hash, PGPSize hashlen,
							PGPPublicKeyMessageFormat format);
PGPError				pgpKeySign_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPByte const *passphrase,
							PGPSize pplen, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal,
							PGPHashAlgorithm hashalg, PGPByte const *hash,
							PGPSize hashlen, PGPPublicKeyMessageFormat format,
							PGPByte **outbuf, PGPSize *outbuflen );
PGPBoolean				pgpSecPassphraseOK_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPByte const *passphrase,
							PGPSize pplen, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal );
PGPError				pgpKeyMaxSizes_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPUInt32 *maxEncryption,
							PGPUInt32 *maxDecryption, PGPUInt32 *maxSignature,
							PGPPublicKeyMessageFormat format );
PGPError				pgpSecProperties_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPBoolean *needsPassphrase,
							PGPBoolean *isSecretShared,
							PGPCipherAlgorithm *lockAlg, PGPUInt32 *lockBits );
PGPError				pgpFetchKeyInfo_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPByte **bufptr, PGPSize *bufsize );
PGPError				pgpOpenKeyDBFile_backRPC(PGPContextRef cdkContext,
							PGPOpenKeyDBFileOptions openFlags,
							PFLFileSpecRef pubFileRef,
							PFLFileSpecRef privFileRef, PGPUInt32 * kdbid,
							PGPUInt32 * numKeys, PGPUInt32 ** keyArray,
							PGPSize * keyArraySize );
PGPError				pgpNewKeyDB_backRPC( PGPContextRef context,
							PGPUInt32 *keydbid );
PGPError				pgpKeyDBArray_backRPC( PGPContextRef cdkContext,
							PGPUInt32 kdbid, PGPUInt32 * numKeys,
							PGPUInt32 ** keyArray, PGPSize * keyArraySize );
PGPError				pgpUpdateKeyDB_backRPC( PGPContextRef cdkContext,
							PGPUInt32 kdbid, PGPUInt32 * numNewKeys,
							PGPUInt32 ** newKeyArray,
							PGPSize * newKeyArraySize,
							PGPUInt32 ** changedkeylist,
							PGPSize *changedkeylistsize );
PGPError				pgpKeyDBFlush_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPUInt32 **changedkeylist,
							PGPSize *changedkeylistsize );
void					pgpFreeKeyDB_backRPC( PGPContextRef context,
							PGPUInt32 id );
PGPError				pgpSetKeyEnabled_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPBoolean enable );
PGPError				pgpSetKeyAxiomatic_backRPC( PGPContextRef context,
							PGPUInt32 id, PGPBoolean setAxiomatic,
							PGPBoolean checkPassphrase,
							char const *passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal );
PGPError				pgpPropagateTrust_backRPC( PGPContextRef context,
							PGPUInt32 setid, PGPUInt32 *keylist,
							PGPSize keylistsize, PGPUInt32 altid,
							PGPUInt32 const timenow,
							PGPUInt32 **changedkeylist,
							PGPSize *changedkeylistsize );
PGPError				pgpCheckKeyRingSigs_backRPC( PGPContextRef context,
							PGPUInt32 setid, PGPUInt32 *keylist,
							PGPSize keylistsize, PGPUInt32 altid,
							PGPBoolean checkAll, PGPUInt32 **changedkeylist,
							PGPSize *changedkeylistsize );
PGPError				pgpPrepareToCheckKeyRingSigs_backRPC(
							PGPContextRef context, PGPUInt32 setid,
							PGPUInt32 *keylist, PGPSize keylistsize,
							PGPUInt32 altid, PGPBoolean checkAll,
							PGPUInt32 *nsigs, PGPUInt32 **changedkeylist,
							PGPSize *changedkeylistsize );
PGPError				pgpCheckSig_backRPC( PGPContextRef context,
							PGPUInt32 setid, PGPUInt32 objid,

⌨️ 快捷键说明

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