X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=crypto%2Fbcmode.c;h=24dfdb80d85e22a6233f062fbd2b1da03cdb5490;hp=e413de72e78677b8af9ff57b91693fc651e405e7;hb=288c17549e4d409b60147b6eb8444e72c0eea4e2;hpb=da1c2c3cbb87a600f19e250f93ef9fa4f89844fc diff --git a/crypto/bcmode.c b/crypto/bcmode.c index e413de7..24dfdb8 100644 --- a/crypto/bcmode.c +++ b/crypto/bcmode.c @@ -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 },