📄 prototype.h
字号:
/* This file is automatically generated with "make proto". DO NOT EDIT */#ifndef _PROTO_H_#define _PROTO_H_/* The following definitions come from keyring.c */extern KeyringPrefsType gPrefs;extern Boolean gEditFormActive;extern void App_LoadFonts(void);extern void App_ReleaseFonts(void);extern Boolean Common_HandleMenuEvent(EventPtr event);extern UInt32 PilotMain(UInt16 launchCode, void *cmdPBP, UInt16 UNUSED(launchFlags));extern Boolean App_CheckReadOnly(void);/* The following definitions come from keyedit.c */extern GUI_SECTION void KeyEdit_GotoRecord(UInt16 recordIdx);extern GUI_SECTION Boolean KeyEdit_HandleEvent(EventPtr event);/* The following definitions come from keydb.c */extern Int16 gKeyDBCardNo;extern LocalID gKeyDBID;extern DmOpenRef gKeyDB;extern Boolean g_ReadOnly;extern Err KeyDB_CreateReservedRecords(void);extern Err KeyDB_CreateAppInfo(void);extern Err KeyDB_SetDBInfo(Int16 cardNo, LocalID id);extern Err KeyDB_InitDB(char* newPasswd, Int16 cipher, Int16 iter);extern Err KeyDB_Init(void);extern KrAppInfoPtr KeyDB_LockAppInfo(void);/* The following definitions come from memutil.c */extern void MemWipe(void *data, UInt16 len);/* The following definitions come from listform.c */extern UInt16 f_FirstIdx;extern GUI_SECTION Boolean ListForm_HandleEvent(EventPtr event);/* The following definitions come from crypto.c */extern Err CheckGlib(UInt32 creator, char* libname);extern UInt16 CryptoKeySize(UInt16 cipher);extern void CryptoPrepareSnib(UInt16 cipher, SnibType *rawKey);extern Boolean CryptoPrepareKey(UInt16 cipher, SnibType *rawKey, CryptoKey *cryptKey);extern void CryptoDeleteKey(CryptoKey *cryptKey);extern Err CryptoRead(void * from, void * to, UInt32 len, CryptoKey *cryptKey, UInt8 *ivec);extern Err CryptoWrite(void *from, void * to, UInt32 len, CryptoKey *cryptKey, UInt8 *ivec);/* The following definitions come from passwd.c */extern Boolean Unlock_GetKey(Boolean askAlways, CryptoKey *key);extern Boolean Unlock_CheckKey(void);/* The following definitions come from uiutil.c */extern void UI_ReportSysError2(UInt16 msgID, Err err, char const *where);extern FieldPtr UI_GetFocusObjectPtr(void);extern void * UI_GetObjectByID(FormPtr frm, UInt16 objectID);extern int UI_ScanForFirst(FormPtr frm, UInt16 const * map);extern void UI_ScanAndSet(FormPtr frm, UInt16 const *map, UInt16 value);extern int UI_ScanUnion(FormPtr frm, UInt16 const * map);extern void UI_UnionSet(FormPtr frm, UInt16 const * map, UInt16 value);extern Char* UI_TxtParamString(const Char *inTemplate, const Char *param0, const Char *param1, const Char *param2, const Char *param3);/* The following definitions come from generate.c */extern MemHandle Generate_Run(void);/* The following definitions come from prefs.c */extern void PrefsForm_Run(void);/* The following definitions come from export.c */extern void Export_WriteString(void *dest, UInt32 *off, Char const *str);extern void ExportKey(UnpackedKeyType *keyRecord);/* The following definitions come from record.c */extern Err Record_Unpack(MemHandle record, UnpackedKeyType **u, CryptoKey *recordKey);extern void Record_SaveRecord(UnpackedKeyType const *unpacked, UInt16 idx, CryptoKey *recordKey);extern void Record_Free(UnpackedKeyPtr u);extern Err Record_SetField(UnpackedKeyPtr record, UInt16 idx, void *data, UInt16 len);extern Err KeyDB_CreateNew(UInt16 *idx);extern void Key_SetCategory(UInt16 idx, UInt16 category);/* The following definitions come from category.c */extern void Category_UpdateName(FormPtr frm, UInt16 category);extern Boolean Category_Selected(Int16 *category, Boolean showAll);/* The following definitions come from setpasswd.c */extern GUI_SECTION Char *SetPasswd_Ask(UInt16 *pCipher, UInt16 *pIter);extern REENCRYPT_SECTION Boolean SetPasswd_Run(void);/* The following definitions come from pwhash.c */extern Err PwHash_Create(const Char *newPasswd, UInt16 cipher, UInt16 iter, SaltHashType *salthash, CryptoKey *newKey);extern Err PwHash_Store(const Char *newPasswd, SaltHashType *salthash);extern Boolean PwHash_CheckSnib(SnibType *snib, CryptoKey *cryptoKey);extern Boolean PwHash_Check(CryptoKey *cryptoKey, Char *guess);/* The following definitions come from snib.c */extern Err Snib_Init(void);extern void Snib_Eradicate(void);extern void Snib_Event(void);extern void Snib_StoreRecordKey(SnibType *newHash);extern void Snib_TimeoutChanged(void);extern Boolean Snib_RetrieveKey(CryptoKey *keyHash);/* The following definitions come from reencrypt.c */extern REENCRYPT_SECTION void SetPasswd_Reencrypt(CryptoKey *oldRecordKey, Char *newPassword, UInt16 cipher, UInt16 iter);/* The following definitions come from sort.c */extern void Keys_Sort(void);/* The following definitions come from secrand.c */extern void Secrand_Init(void);extern void Secrand_Close(void);extern void Secrand_AddEventRandomness(EventType *ev);extern UInt8 Secrand_GetByte(void);/* The following definitions come from search.c */extern void Search(FindParamsPtr findParams, Boolean hasGlobals);/* The following definitions come from pronounce.c */extern void Pron_GetSyllable (Char *syllable, UInt16 pwlen, PronStateType *state, void *prondata);/* The following definitions come from sha1.c */extern UInt32 initsha1[5];extern SHA1_SECTION void PwHash_PBKDF2(void* result, int resultLen, const Char *passwd, const Char *salt, int iter);/* The following definitions come from upgrade.c */extern UPGRADE_SECTION Err UpgradeDB(UInt16 oldVersion);#endif /* _PROTO_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -