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

📄 pgpkeypriv.h

📁 可以实现对邮件的加密解密以及签名
💻 H
📖 第 1 页 / 共 5 页
字号:
							PGPSize len );
PGPKeyDBObj *			pgpCreateSig( PGPKeyDB *db, PGPKeyDBObj *parent,
							PGPByte const *sig, PGPSize len );
PGPKeyDBObj *			pgpCreateCRL( PGPKeyDB *db, PGPKeyDBObj *parent,
							PGPByte const *crl, PGPSize len );
PGPError				pgpUpdateSecKeyData( PGPKeyDBObj *key,
							PGPSecKey const *skey );
PGPError				pgpAddFromKeyArray( PGPKeyDB *kdb, PGPKeyDBObj *parent,
							PGPUInt32 *keyArray, PGPUInt32 keyCount,
							PGPBoolean newobjs );


/* pgpKeyFilter.c */

PGPBoolean				pgpKeyDBObjMatchesFilter(PGPFilterRef filter,
							PGPKeyDBObjRef obj);


/* pgpKeyID.c */

PGPBoolean				pgpKeyIDIsValid( PGPKeyID const * id );
PGPError				pgpNewKeyIDFromRawData(const void * data,
							PGPByte pkalg, PGPSize dataSize,
							PGPKeyID * outID );
PGPByte const *			pgpGetKeyIDBytes( PGPKeyID const *keyID );
PGPBoolean				pgpKeyIDsEqual(PGPKeyID const * key1,
							PGPKeyID const * key2);
PGPUInt32				pgpKeyIDLength( PGPKeyID const *key1 );


/* pgpKeyIO.c */

PGPError				pgpImportKeyBinary (PGPContextRef cdkContext,
							PGPByte * buffer, size_t length,
							PGPKeyDBRef * outRef);
PGPError				pgpImportKeyBinary_internal (PGPContextRef cdkContext,
							const PGPByte * buffer, size_t length,
							PGPKeyDBRef * outRef);
PGPError				pgpImportKeySetInternal (PGPContextRef context,
							PGPKeyDBRef *keydb, PGPOptionListRef optionList);
PGPError				pgpExportToPGPFile( PGPKeySet *set, PGPFile *file,
							PGPBoolean exportmastersecrets,
							PGPBoolean exportsubsecrets,
							PGPBoolean includeattributes, 
							PGPBoolean includepubkey );
PGPError				pgpExportKeySetInternal (PGPKeySet *keys,
							PGPOptionListRef optionList);
PGPError				pgpExportInternal (PGPContextRef context,
							PGPOptionListRef optionList);
PGPError				pgpOpenKeyDBFile_internal( PGPContextRef cdkContext,
							PGPOpenKeyDBFileOptions openFlags,
							PFLFileSpecRef pubFileRef,
							PFLFileSpecRef privFileRef,
							PGPKeyDBRef * keyDBOut );
PGPError				pgpCreateX509CertificateInternal(PGPKeyDBObjRef signer,
							PGPKeyDBObjRef targetkey, PGPKeyDBObjRef *sig,
							PGPOptionListRef optionList );
PGPError				pgpCreateX509CRLInternal(PGPKeyDBObjRef signer,
							PGPKeySetRef targetkeys,
							PGPOptionListRef optionList );


/* pgpKeyIter.c */

PGPError				pgpGetFirstSubKey(PGPKeyDBObjRef key,
							PGPKeyDBObjRef * outRef );
PGPBoolean				pgpKeyIterIsValid( PGPKeyIter const * keyIter);
PGPError				pgpKeyIterNextObject(PGPKeyIterRef iter,
							PGPKeyDBObjRef *outRef);

/* pgpKeyList.c */

PGPBoolean				pgpKeyListIsValid( PGPKeyList const * keyList);
PGPError				pgpUpdateList(PGPKeyList *list);


/* pgpKeyMan.c */

PGPError				pgpRevokeKeyInternal(PGPKeyDBObjRef key,
							PGPOptionListRef optionList );
PGPError				pgpRevokeKey_internal (PGPKeyDBObjRef key,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal);
PGPUInt32				pgpKeyEntropyNeededInternal(PGPContextRef context,
							PGPOptionListRef optionList );
PGPBoolean				pgpPassphraseIsValidInternal(PGPKeyDBObjRef key,
							PGPOptionListRef optionList);
PGPError				pgpPassphraseIsValid_internal(PGPKeyDBObjRef key,
							const char * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase, PGPUInt32 cacheTimeOut,
							PGPBoolean cacheGlobal, PGPBoolean * isValid);
PGPError				pgpDoGenerateKey_internal( PGPKeyDB * keyDB,
							PGPKeyDBObj * masterkey, PGPByte pkalg,
							PGPUInt32 bits, PGPTime creationDate,
							PGPUInt16 expirationDays, char const * name,
							int 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, PGPKeySet const *adkset,
							PGPByte adkclass, PGPKeySet const *rakset,
							PGPByte rakclass,
							PGPCipherAlgorithm const * prefalg,
							PGPSize prefalgLength,
							PGPByte const * prefkeyserv,
							PGPSize prefkeyservLength, PGPUInt32 keyflags,
							PGPBoolean fkeyflags, PGPUInt32 keyservprefs,
							PGPBoolean fkeyservprefs, PGPKeyDBObj ** newkey);
PGPError				pgpGenerateKeyInternal(PGPKeyDBObjRef *key,
							PGPOptionListRef optionList);
PGPError				pgpGenerateSubKeyInternal(PGPKeyDBObjRef *subkey,
							PGPOptionListRef optionList);
PGPError				pgpAddKeyOptionsInternal (PGPKeyDBObjRef key,
							PGPOptionListRef optionList);
PGPError				pgpAddKeyOptions_internal (PGPKeyDBObjRef key,
							const char * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase, PGPUInt32 cacheTimeOut,
							PGPBoolean cacheGlobal, PGPKeySetRef rakset,
							PGPUInt32 rakclass);
PGPError				pgpRemoveKeyOptionsInternal (PGPKeyDBObjRef key,
							PGPOptionListRef optionList);
PGPError				pgpUpdateKeyOptionsInternal (PGPKeyDBObjRef key,
							PGPOptionListRef optionList);
PGPError				pgpUpdateKeyOptions_internal (PGPKeyDBObjRef key,
							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);
PGPError				pgpDisableKey (PGPKeyDBObj *key);
PGPError				pgpEnableKey (PGPKeyDBObj *key);
PGPError				pgpDoChangePassphrase_internal (PGPKeyDB *keyDB,
							PGPKeyDBObj *key, PGPKeyDBObj *masterkey, 
							const char *oldphrase, PGPSize oldphraseLength,
							const char *newphrase, PGPSize newphraseLength,
							PGPBoolean newPassphraseIsKey,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal);
PGPError				pgpChangePassphraseInternal(PGPKeyDBObjRef key,
							PGPOptionListRef optionList);
PGPError				pgpRevokeSubKey_internal (PGPKeyDBObjRef subkey,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal);
PGPError				pgpChangeSubKeyPassphraseInternal(
							PGPKeyDBObjRef subkey,PGPOptionListRef optionList);
PGPError				pgpRevokeSubKeyInternal(PGPKeyDBObjRef subkey,
							PGPOptionListRef optionList );
PGPError				pgpGetKeyPasskeyBufferInternal (PGPKeyDBObjRef key,
							void *passkeyBuffer, PGPOptionListRef optionList);
PGPError				pgpGetSubKeyPasskeyBufferInternal (
							PGPKeyDBObjRef subkey, void *passkeyBuffer,
							PGPOptionListRef optionList);
PGPError				pgpGetPasskeyBuffer_internal (PGPKeyDBObjRef key,
							char const * passphrase, PGPSize passphraseLength,
							PGPByte *passkeyBuffer);
PGPError				pgpAddUserIDInternal(PGPKeyDBObjRef key,
							char const * userID, PGPOptionListRef optionList);
PGPError				pgpAddUserID_internal (PGPKeyDBObjRef key,
							PGPBoolean isAttribute,
							PGPAttributeType attributeType,
							char const * userIDData, PGPSize userIDLength,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal );
PGPError				pgpAddAttributeInternal(PGPKeyDBObjRef key,
							PGPAttributeType attributeType,
							PGPByte const *attributeData,
							PGPSize attributeLength,
							PGPOptionListRef optionList);
PGPError				pgpCertifyPrimaryUserIDInternal (PGPKeyDBObj * userid,
							PGPOptionListRef optionList);
PGPError				pgpCertifyPrimaryUserID_internal (PGPKeyDBObj *userid,
							const char *passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal );
PGPError				pgpCertifyUserIDInternal (PGPKeyDBObj * userid,
							PGPKeyDBObj * certifying_key,
							PGPOptionListRef optionList);
PGPError				 pgpCertifyUserID_internal(PGPKeyDBObj * userid,
							PGPKeyDBObjRef certifying_key,
							char const * passphrase, PGPSize passphraseLength,
							PGPBoolean hashedPhrase, PGPUInt32 cacheTimeOut,
							PGPBoolean cacheGlobal, PGPBoolean exportable,
							PGPTime creationDate, PGPUInt32 expiration,
							PGPByte trustDepth, PGPByte trustValue,
							char const * sRegExp );
PGPError				pgpGetSigCertifierKey(PGPKeyDBObjRef sig,
							PGPKeyDBRef otherdb, PGPKeyDBObj ** certkey);
PGPError				pgpRevokeSigInternal(PGPKeyDBObjRef sig,
							PGPOptionListRef optionList);
PGPError				pgpRevokeSig_internal (PGPContextRef context,
							PGPKeyDBObjRef sig, char const * passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal);
PGPError				pgpSetKeyAxiomaticInternal(PGPKeyDBObjRef key,
							PGPBoolean isAxiomatic,
							PGPOptionListRef optionList);
PGPError				pgpSetKeyAxiomatic_internal (PGPKeyDBObj * key,
							PGPBoolean setAxiomatic,
							PGPBoolean checkPassphrase, char const *passphrase,
							PGPSize passphraseLength, PGPBoolean hashedPhrase,
							PGPUInt32 cacheTimeOut, PGPBoolean cacheGlobal);
PGPError				pgpSetKeyTrust_internal( PGPKeyDBObj *key,
							PGPUInt32 trust );
PGPError				pgpUnsetKeyAxiomatic (PGPKeyDBObj *key);
PGPError				pgpGetKeyNumberInternal (PGPKeyDBObj *key,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetSubKeyNumberInternal (PGPKeyDBObjRef subkey,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetUserIDNumberInternal (PGPKeyDBObj *userid,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetUserIDBooleanInternal (PGPKeyDBObj *userid,
							PGPKeyDBObjProperty propname, PGPBoolean *prop);
PGPError				pgpGetSigNumberInternal (PGPKeyDBObj *sig,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetKeyIDOfCertifier(PGPKeyDBObj *sig,
							PGPKeyID *outID );
PGPError				pgpGetSigTimeInternal (PGPKeyDBObj *sig,
							PGPKeyDBObjProperty propname, PGPTime *prop);
PGPError				pgpGetSigBooleanInternal (PGPKeyDBObj *sig,
							PGPKeyDBObjProperty propname, PGPBoolean *prop);
PGPContextRef			pgpGetKeyDBContext( PGPKeyDBRef ref );
PGPError				pgpGetKeyBoolean( PGPKeyDBObjRef key,
							PGPKeyDBObjProperty propname, PGPBoolean *prop);
PGPError				pgpGetKeyNumber( PGPKeyDBObjRef key,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetKeyPropertyBuffer( PGPKeyDBObjRef key,
							PGPKeyDBObjProperty propname, PGPSize bufferSize,
							void *data, PGPSize *fullSize);
PGPError				pgpGetKeyAllocatedPropertyBuffer( PGPKeyDBObjRef key,
							PGPKeyDBObjProperty propname, PGPByte **allocBuf,
							PGPSize *fullSize);
PGPError				pgpGetKeyTime( PGPKeyDBObjRef key,
							PGPKeyDBObjProperty propname, PGPTime *prop);
PGPError				pgpGetSubKeyBoolean( PGPKeyDBObjRef subkey,
							PGPKeyDBObjProperty propname, PGPBoolean *prop);
PGPError				pgpGetSubKeyNumber( PGPKeyDBObjRef subkey,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetSubKeyPropertyBuffer( PGPKeyDBObjRef subkey,
							PGPKeyDBObjProperty propname, PGPSize bufferSize,
							void *data, PGPSize *fullSize);
PGPError				pgpGetSubKeyAllocatedPropertyBuffer(
							PGPKeyDBObjRef subkey,
							PGPKeyDBObjProperty propname, PGPByte **allocBuf,
							PGPSize *fullSize);
PGPError				pgpGetSubKeyTime( PGPKeyDBObjRef subkey,
							PGPKeyDBObjProperty propname, PGPTime *prop);
PGPError				pgpGetUserIDNumber( PGPKeyDBObjRef userID,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetUserIDBoolean( PGPKeyDBObjRef userID,
							PGPKeyDBObjProperty propname, PGPBoolean *prop);
PGPError				pgpGetUserIDStringBuffer( PGPKeyDBObjRef userID,
							PGPKeyDBObjProperty propname, PGPSize bufferSize,
							char * string, PGPSize * fullSize);
PGPError				pgpGetUserIDAllocatedStringBuffer(
							PGPKeyDBObjRef userID,
							PGPKeyDBObjProperty propname, PGPByte **allocBuf,
							PGPSize * fullSize);
PGPError				pgpGetSigPropertyBuffer( PGPKeyDBObjRef cert,
							PGPKeyDBObjProperty propname, PGPSize bufferSize,
							void *data, PGPSize *fullSize);
PGPError				pgpGetSigAllocatedPropertyBuffer( PGPKeyDBObjRef cert,
							PGPKeyDBObjProperty propname, PGPByte **allocBuf,
							PGPSize *fullSize);
PGPError				pgpGetSigBoolean( PGPKeyDBObjRef cert,
							PGPKeyDBObjProperty propname, PGPBoolean *prop);
PGPError				pgpGetSigNumber( PGPKeyDBObjRef cert,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpGetSigTime( PGPKeyDBObjRef cert,
							PGPKeyDBObjProperty propname, PGPTime *prop);
PGPError				pgpGetKeyDBObjNumber( PGPKeyDBObj *obj,
							PGPKeyDBObjProperty propname, PGPInt32 *prop);
PGPError				pgpCountTokens_internal( PGPContextRef context,
							PGPUInt32 *numTokens );
PGPError				pgpGetTokenInfo_internal( PGPContextRef context,
							PGPUInt32 tokNumber, PGPTokenInfo *tokenInfo );
PGPError				pgpDeleteKeyOnToken_internal( PGPContextRef context,
							PGPUInt32 keydbID, const PGPKeyID *keyID,
							PGPUInt32 toknumber,
							PGPByte const *pin, PGPSize pinLen );
PGPError				pgpWipeToken_internal( PGPContextRef context,
							PGPUInt32 tokenID, PGPByte const *passphrase,
							PGPSize passphraseLength );
PGPError				pgpFormatToken_internal( PGPContextRef context,
							PGPUInt32 tokenID, 
							PGPByte const *	adminPin,	PGPSize	adminPinLen, 
							PGPByte const *	newUserPin,	PGPSize	newUserPinLen );
PGPError				pgpTokenPassphraseIsValid_internal(
							PGPContextRef context,
							PGPUInt32 tokenID, PGPByte const *passphrase,
							PGPSize passphraseLength );
PGPError				pgpCopyKeyToToken_internal(PGPKeyDBObjRef key,
							PGPUInt32 tokNumber, PGPBoolean isMaster, char const * passphras

⌨️ 快捷键说明

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