chiark / gitweb /
Generates tables. Does not compile.
[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 Table hbytes
8         raw2h
9                 binary  obj
10                 =>      hb
11         h2raw
12                 hex     hb
13                 =>      obj
14         prefix
15                 v       hbv
16                 str     ...
17         append
18                 v       hbv
19                 str     ...
20         concat
21                 v       hbv
22                 str     ...
23         unprepend
24                 v       hbv
25                 length  int
26                 =>      hb
27         unappend
28                 v       hbv
29                 length  int
30                 =>      hb
31         chopto
32                 v       hbv
33                 length  int
34                 =>      hb
35         pkcs5
36                 meth    enum(PadMethodInfo,padmethodinfos)
37                 obj     ...
38         blockcipher
39                 encrypt charfrom("de")
40                 v       hbv
41                 alg     enum(BlockCipherAlgInfo,blockcipheralginfos)
42                 mode    enum(BlockCipherModeInfo,blockciphermodeinfos)
43                 ?iv     hb
44                 =>      hb
45         hash
46                 alg     enum(HashAlgInfo,hashalginfos)
47                 message hb
48                 =>      hb
49         hmac
50                 alg     enum(HashAlgInfo,hashalginfos)
51                 message hb
52                 key     hb
53                 maclen  int
54                 =>      hb
55
56 #Table padmethodinfos
57 #       Info
58 #               int algname;
59 #Entries