Support multi-byte characters for TC/VC keyboard layout mapping tables

This commit is contained in:
Jens Steube
2018-11-25 13:31:37 +01:00
parent 38e97bd89a
commit ee2854ec2a
20 changed files with 435 additions and 191 deletions

View File

@@ -317,14 +317,25 @@ typedef struct keepass
} keepass_t;
typedef struct kb_layout_map
{
u32 src_char;
int src_len;
u32 dst_char;
int dst_len;
} kb_layout_map_t;
typedef struct tc
{
u32 salt_buf[32];
u32 data_buf[112];
u32 keyfile_buf[16];
u32 keyboard_layout[256];
u32 signature;
kb_layout_map_t kb_layout_map[256];
int kb_layout_map_cnt;
} tc_t;
typedef struct pbkdf2_md5