chiark / gitweb /
46fb7fbea61f23fe4435cc18b512443b7c69996e
[chiark-tcl.git] / base / tables-examples.tct
1 Type hb:                        HBytes_Value @
2 Init hb                         @.start=0; @.end=0;
3 Type hbv:                       HBytes_Value *@
4
5 H-Include       "hbytes.h"
6
7 Untabled
8         hbytes
9                 subcmd  enum(ParserCommandTableEntry,pcmdtab_hbytes)
10                 obj     ...
11
12 Table hbytes
13         raw2h
14                 binary  obj
15                 =>      hb
16         h2raw
17                 hex     hb
18                 =>      obj
19         prefix
20                 v       hbv
21                 str     ...
22         append
23                 v       hbv
24                 str     ...
25         concat
26                 v       hbv
27                 str     ...
28         unprepend
29                 v       hbv
30                 length  int
31                 =>      hb
32         unappend
33                 v       hbv
34                 length  int
35                 =>      hb
36         chopto
37                 v       hbv
38                 length  int
39                 =>      hb
40         pkcs5
41                 meth    enum(PadMethodInfo,padmethodinfos)
42                 obj     ...
43         blockcipher
44                 encrypt charfrom("de")
45                 v       hbv
46                 alg     enum(BlockCipherAlgInfo,blockcipheralginfos)
47                 mode    enum(BlockCipherModeInfo,blockciphermodeinfos)
48                 ?iv     hb
49                 =>      hb
50         hash
51                 alg     enum(HashAlgInfo,hashalginfos)
52                 message hb
53                 =>      hb
54         hmac
55                 alg     enum(HashAlgInfo,hashalginfos)
56                 message hb
57                 key     hb
58                 maclen  int
59                 =>      hb
60
61 Table padmethod
62         Of PadMethodInfo
63         pa      1, 0
64
65 EntryExtra PadMethodInfo
66         int pad, algname;