Fix format string warning from file(1) magic.
[pwmd.git] / doc / magic
blob879920da9f2b7cc5a93890f550343a76719860f9
1 # This is file(1) magic for pwmd.
2 0x00    string  \177PWMD        PWMD data file,
4 # Version 3.x.x
5 >0x05   belong  >0x02ffff
6 >>0x06  ubyte   x               \b version=%x.
7 >>0x07  ubyte   x               \b%x.
8 >>0x08  ubyte   x               \b%x
9 # Cipher iterations
10 >>0x09  bequad  x               \b, iterations=%llu
11 # Flags (cipher)
12 >>0x11  bequad  >0              \b, cipher=
13 >>>0x11 bequad  &0x01           \baes128
14 >>>0x11 bequad  &0x02           \baes192
15 >>>0x11 bequad  &0x04           \baes256
16 >>>0x11 bequad  &0x08           \bserpent128
17 >>>0x11 bequad  &0x10           \bserpent192
18 >>>0x11 bequad  &0x20           \bserpent256
19 >>>0x11 bequad  &0x40           \bcamellia128
20 >>>0x11 bequad  &0x80           \bcamellia192
21 >>>0x11 bequad  &0x100          \bcamellia256
22 >>>0x11 bequad  &0x200          \b3des
23 >>>0x11 bequad  &0x400          \bcast5
24 >>>0x11 bequad  &0x800          \bblowfish
25 >>>0x11 bequad  &0x1000         \btwofish256
26 >>>0x11 bequad  &0x2000         \btwofish128
27 >>0x31  belong  x               \b, datalen=%i
28 # Keygrips (PKI flag)
29 >>0x11                  bequad  &0x10000
30 >>>0x35                 ubyte   x       \b, keygrip=%02X
31 >>>>&0x00               ubyte   x       \b%02X
32 >>>>&0x01               ubyte   x       \b%02X
33 >>>>&0x02               ubyte   x       \b%02X
34 >>>>&0x03               ubyte   x       \b%02X
35 >>>>&0x04               ubyte   x       \b%02X
36 >>>>&0x05               ubyte   x       \b%02X
37 >>>>&0x06               ubyte   x       \b%02X
38 >>>>&0x07               ubyte   x       \b%02X
39 >>>>&0x08               ubyte   x       \b%02X
40 >>>>&0x09               ubyte   x       \b%02X
41 >>>>&0x0a               ubyte   x       \b%02X
42 >>>>&0x0b               ubyte   x       \b%02X
43 >>>>&0x0c               ubyte   x       \b%02X
44 >>>>&0x0d               ubyte   x       \b%02X
45 >>>>&0x0e               ubyte   x       \b%02X
46 >>>>&0x0f               ubyte   x       \b%02X
47 >>>>&0x10               ubyte   x       \b%02X
48 >>>>&0x11               ubyte   x       \b%02X
49 >>>>&0x12               ubyte   x       \b%02X
50 >>>0x49                 ubyte   x       \b, sign-keygrip=%02X
51 >>>>&0x00               ubyte   x       \b%02X
52 >>>>&0x01               ubyte   x       \b%02X
53 >>>>&0x02               ubyte   x       \b%02X
54 >>>>&0x03               ubyte   x       \b%02X
55 >>>>&0x04               ubyte   x       \b%02X
56 >>>>&0x05               ubyte   x       \b%02X
57 >>>>&0x06               ubyte   x       \b%02X
58 >>>>&0x07               ubyte   x       \b%02X
59 >>>>&0x08               ubyte   x       \b%02X
60 >>>>&0x09               ubyte   x       \b%02X
61 >>>>&0x0a               ubyte   x       \b%02X
62 >>>>&0x0b               ubyte   x       \b%02X
63 >>>>&0x0c               ubyte   x       \b%02X
64 >>>>&0x0d               ubyte   x       \b%02X
65 >>>>&0x0e               ubyte   x       \b%02X
66 >>>>&0x0f               ubyte   x       \b%02X
67 >>>>&0x10               ubyte   x       \b%02X
68 >>>>&0x11               ubyte   x       \b%02X
69 >>>>&0x12               ubyte   x       \b%02X
71 # Flags
72 >>0x11          bequad  >0
73 #>>>0x11        bequad  &0x10000 \b, PKI
74 >>>0x11         bequad  &0x20000 \b, not protected