summaryrefslogtreecommitdiffabout
path: root/pwmanager/keycard-format
authorulf69 <ulf69>2004-09-15 17:53:22 (UTC)
committer ulf69 <ulf69>2004-09-15 17:53:22 (UTC)
commitd3925ba5bd25224bc4a60d3d6a107c464994a1ea (patch) (unidiff)
tree60f69da1d2b79ee3081e7ef5c09a46470ca6eda0 /pwmanager/keycard-format
parentce83a3479d23b9e8a59c745ccd0a0b14f64ef4e8 (diff)
downloadkdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.zip
kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.gz
kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.bz2
initial revision
Diffstat (limited to 'pwmanager/keycard-format') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/keycard-format55
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<=========================>
4cardformat version: 0x01
5
6The keycard has a small header area and a key-data body.
7
8The header is built with the following scheme:
9
10PWMKEYCARD
11[CARDVER]
12[CARD-ID]
13[KEYDATA-LENGTH]
14
15
16After this header, the key-data-body with the length
17[KEYDATA-LENGTH] follows.
18
19Explanation of the header-fields:
20
21PWMKEYCARD is a magic string at the beginning of the card
22to 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)
27to hold an ID number for the card.
28
29[KEYDATA-LENGTH] are 2 bytes (an unsigned short) for holding
30the length of the key-data in BIG-ENDIAN format.
31
32
33*******************************
34* KeyCard backup-image format *
35*******************************
36backup image version: 0x01
37
38PWMKEYCARD_BACKUPIMAGE
39[IMAGEVER]
40[CARD-ID]
41[KEYDATA]
42
43
44PWMKEYCARD_BACKUPIMAGE
45magic header.
46
47[IMAGEVER]
48version indentifier of the backup-image.
49
50[CARD-ID]
51card-ID. see keycard-format.
52
53[KEYDATA]
54All data after CARD-ID until the end of the file
55is treated as the key itself.