author | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
commit | d3925ba5bd25224bc4a60d3d6a107c464994a1ea (patch) (unidiff) | |
tree | 60f69da1d2b79ee3081e7ef5c09a46470ca6eda0 /pwmanager/keycard-format | |
parent | ce83a3479d23b9e8a59c745ccd0a0b14f64ef4e8 (diff) | |
download | kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.zip kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.gz kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.bz2 |
initial revision
-rw-r--r-- | pwmanager/keycard-format | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pwmanager/keycard-format b/pwmanager/keycard-format new file mode 100644 index 0000000..1ae1b5e --- a/dev/null +++ b/pwmanager/keycard-format | |||
@@ -0,0 +1,55 @@ | |||
1 | <=========================> | ||
2 | < Format of PwM-KeyCard > | ||
3 | <=========================> | ||
4 | cardformat version: 0x01 | ||
5 | |||
6 | The keycard has a small header area and a key-data body. | ||
7 | |||
8 | The header is built with the following scheme: | ||
9 | |||
10 | PWMKEYCARD | ||
11 | [CARDVER] | ||
12 | [CARD-ID] | ||
13 | [KEYDATA-LENGTH] | ||
14 | |||
15 | |||
16 | After this header, the key-data-body with the length | ||
17 | [KEYDATA-LENGTH] follows. | ||
18 | |||
19 | Explanation of the header-fields: | ||
20 | |||
21 | PWMKEYCARD is a magic string at the beginning of the card | ||
22 | to indentify the chipcard as a "pwm-keycard". | ||
23 | |||
24 | [CARDVER] is one byte for holding the card-format version. | ||
25 | |||
26 | [CARD-ID] are 4 bytes (an unsigned BIG-ENDIAN value) | ||
27 | to hold an ID number for the card. | ||
28 | |||
29 | [KEYDATA-LENGTH] are 2 bytes (an unsigned short) for holding | ||
30 | the length of the key-data in BIG-ENDIAN format. | ||
31 | |||
32 | |||
33 | ******************************* | ||
34 | * KeyCard backup-image format * | ||
35 | ******************************* | ||
36 | backup image version: 0x01 | ||
37 | |||
38 | PWMKEYCARD_BACKUPIMAGE | ||
39 | [IMAGEVER] | ||
40 | [CARD-ID] | ||
41 | [KEYDATA] | ||
42 | |||
43 | |||
44 | PWMKEYCARD_BACKUPIMAGE | ||
45 | magic header. | ||
46 | |||
47 | [IMAGEVER] | ||
48 | version indentifier of the backup-image. | ||
49 | |||
50 | [CARD-ID] | ||
51 | card-ID. see keycard-format. | ||
52 | |||
53 | [KEYDATA] | ||
54 | All data after CARD-ID until the end of the file | ||
55 | is treated as the key itself. | ||