home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / gnome-keyring / file-format.txt < prev    next >
Encoding:
Text File  |  2003-12-05  |  1.2 KB  |  70 lines

  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   
  69.  
  70.