chiark / gitweb /
hbytes and crypto compile now
[chiark-tcl.git] / crypto / bcmode.c
index e413de72e78677b8af9ff57b91693fc651e405e7..24dfdb80d85e22a6233f062fbd2b1da03cdb5490 100644 (file)
@@ -1,7 +1,7 @@
 /*
  */
   
-#include "hbytes.h"
+#include "chiark_tcl_crypto.h"
 
 static const char *mode_cbc_encrypt(Byte *data, int blocks,
                                    const Byte *iv, Byte *chain,
@@ -110,7 +110,7 @@ static const char *mode_ctr(Byte *data, int blocks,
   return 0;
 }
 
-const BlockCipherModeInfo blockciphermodeinfos[]= {
+const BlockCipherModeInfo cht_blockciphermodeinfo_entries[]= {
   { "cbc",      1, 2, 1, mode_cbc_encrypt, mode_cbc_decrypt, mode_cbc_mac  },
   { "cbc-mac2", 1, 2, 1, 0,                0,                mode_cbc_mac2 },
   { "ecb",      0, 0, 0, mode_ecb,         mode_ecb,         0             },