-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelPassKey.h
More file actions
45 lines (42 loc) · 1.62 KB
/
Copy pathSelPassKey.h
File metadata and controls
45 lines (42 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//---------------------------------------------------------------------------
#ifndef SelPassKeyH
#define SelPassKeyH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Buttons.hpp>
#include "Crypto.h"
//---------------------------------------------------------------------------
class TfSelPassKey : public TForm
{
__published: // IDE-managed Components
TButton *bOk;
TButton *bCancel;
TEdit *eKey;
TLabel *lKey;
TBitBtn *bbViewKey;
TButton *bTiger;
void __fastcall bbViewKeyClick(TObject *Sender);
void __fastcall bCancelClick(TObject *Sender);
void __fastcall bOkClick(TObject *Sender);
void __fastcall bTigerClick(TObject *Sender);
void __fastcall lKeyDblClick(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall eKeyKeyPress(TObject *Sender, System::WideChar &Key);
private: // User declarations
void TfSelPassKey::WipeString(String *input);
void TfSelPassKey::WipeUTF8String(UTF8String *input);
void TfSelPassKey::WipeEditBox(TEdit *input);
public: // User declarations
byte sessionSalt[SESSION_SALT_SIZE];
byte argonSalt[ARGON_SALT_SIZE];
byte sessionKey[ARGON_HASH_SIZE];
byte rootPassword[TIGER_HASH_SIZE];
__fastcall TfSelPassKey(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfSelPassKey *fSelPassKey;
//---------------------------------------------------------------------------
#endif