~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to docs/file-format.txt

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
guint32: 32bit, msbf
 
2
time_t: 2 * guint32
 
3
strings: uint32 + bytes, no padding, NULL is encoded as 0xffffffff
 
4
reserved, must be zero
 
5
 
 
6
string hash: 16 bytes md5
 
7
guint32 hash: 0xdeadbeef ^ x ^ (x>>16 | x&0xffff << 16)
 
8
 
 
9
 
 
10
Header:
 
11
 
 
12
"GnomeKeyring\n\r\0\n"
 
13
2 byte version, 1 byte cryto, 1 byte hash
 
14
 
 
15
keyring data:
 
16
 
 
17
string: keyring name
 
18
time_t ctime
 
19
time_t mtime
 
20
guint32 flags (flag 0 == lock_on_idle)
 
21
guint32 lock_timeout
 
22
guint32 hash_iterations
 
23
byte[8] salt
 
24
guint32 reserved[4]
 
25
 
 
26
hashed items:
 
27
 
 
28
guint32 num_items
 
29
 
 
30
num_items *
 
31
 
 
32
 guint32 id
 
33
 guint32 type
 
34
 guint32 num_attributes
 
35
 
 
36
 num_attributes *
 
37
  string name
 
38
  guint32 type
 
39
  guint32 int_hash, or string str_hash
 
40
 
 
41
guin32 num_encrypted bytes
 
42
 encrypted data:
 
43
  bytes[16] encryted hash, (for decrypt ok verify)
 
44
 
 
45
  num_items *
 
46
   string display_name
 
47
   string secret
 
48
   time_t ctime
 
49
   time_t mtime
 
50
 
 
51
   string reserved_str
 
52
   guint[4] reserved_int2
 
53
 
 
54
   guint32 num_attributes
 
55
   num_attributes *
 
56
    string name
 
57
    guint32 type
 
58
    guint32 or string val
 
59
 
 
60
   guint acl_len
 
61
    acl_len *
 
62
     guint32 types_allowed
 
63
     string display_name
 
64
     string pathname
 
65
     string reserved_str
 
66
     guint32 reserved_uint
 
67
 
 
68
  zero padding to make even multiple of 16