chiark / gitweb /
Drop alg->byteswap; implement counter mode; split padding so now we do PKCS#5 and...
[chiark-tcl.git] / base / tables-examples.tct
index 56fd4ab2ae4e926ac636704c9e5df75fd3b9a952..7cbf3128cc79415e3273558534b0eb59f47bf7ff 100644 (file)
@@ -131,11 +131,12 @@ Table hbytes HBytes_SubCommand
        random
                length  int
                =>      hb
-       pkcs5
-               meth    enum(PadMethod, "hbytes pad subcommand")
+       pad
+               op      enum(PadOp, "hbytes pad subcommand")
                v       hbv
-               block   obj
-               =>      int
+               blocksz obj
+               meth    enum(PadMethodInfo, "pad method")
+               ...     methargs
        blockcipher
                op      enum(BlockCipherOp, "op")
                ...     obj
@@ -154,6 +155,13 @@ Table hbytes HBytes_SubCommand
                alg     enum(HashAlgInfo, "alg")
                =>      int
 
+Table padmethodinfo PadMethodInfo
+       pkcs5
+               =>      int
+       rfc2406
+               nxthdr  obj
+               =>      int
+
 Table dgram_socket DgramSocket_SubCommand
        create
                local   sockaddr