chiark / gitweb /
Serpent seems to work. Byte order is very strange.
[chiark-tcl.git] / hbytes / hbytes.h
index cfc96e912f9fd994de502e05c69c0f7e57ab04de..c5ffc06bbf0da4cd07826a2f1bdf9e6cb0a0c3b5 100644 (file)
@@ -15,7 +15,7 @@
  *
  *  hbytes pkcs5 pa|ua VAR ALG                   => worked?  (always 1 for p)
  *  hbytes pkcs5 pn|un VAR BLOCKSIZE             => worked?  (always 1 for p)
- *  hbytes blockcipher d|e VAR ALG MODE [IV]     => IV
+ *  hbytes blockcipher d|e VAR ALG KEY MODE [IV] => IV
  *
  *  hbytes hash ALG MESSAGE                      => hash
  *  hbytes hmac ALG MESSAGE KEY [MACLENGTH]      => mac
@@ -92,6 +92,8 @@ void hbytes_free(HBytes_Value *frees);
 
 int staticerr(Tcl_Interp *ip, const char *m);
 void objfreeir(Tcl_Obj *o);
+void obj_updatestr_array(Tcl_Obj *o, const Byte *array, int l);
+int get_urandom(Tcl_Interp *ip, Byte *buffer, int l);
 
 /* from parse.c */
 
@@ -136,6 +138,8 @@ typedef struct {
   int pad, use_algname;
 } PadMethod;
 
+Tcl_ObjType blockcipherkey_type;
+
 /* from hash.c */
 
 typedef struct {