1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Ifdef out the actual code supporting 3des-ctr and blowfish-ctr, since GCC

now notices that it isn't used.

[originally from svn r5652]
This commit is contained in:
Ben Harris 2005-04-20 22:52:54 +00:00
parent 5079fcc182
commit 2e761fefaf
2 changed files with 6 additions and 0 deletions

View File

@ -389,6 +389,7 @@ static void blowfish_msb_decrypt_cbc(unsigned char *blk, int len,
ctx->iv1 = iv1;
}
#ifdef ENABLE_BLOWFISH_SSH2_CTR
static void blowfish_msb_sdctr(unsigned char *blk, int len,
BlowfishContext * ctx)
{
@ -414,6 +415,7 @@ static void blowfish_msb_sdctr(unsigned char *blk, int len,
ctx->iv0 = iv0;
ctx->iv1 = iv1;
}
#endif
static void blowfish_setkey(BlowfishContext * ctx,
const unsigned char *key, short keybytes)

View File

@ -732,6 +732,7 @@ static void des_cbc3_decrypt(unsigned char *dest, const unsigned char *src,
scheds->iv1 = iv1;
}
#ifdef ENABLE_3DES_SSH2_CTR
static void des_sdctr3(unsigned char *dest, const unsigned char *src,
unsigned int len, DESContext * scheds)
{
@ -760,6 +761,7 @@ static void des_sdctr3(unsigned char *dest, const unsigned char *src,
scheds->iv0 = iv0;
scheds->iv1 = iv1;
}
#endif
static void *des3_make_context(void)
{
@ -844,11 +846,13 @@ static void des3_ssh2_decrypt_blk(void *handle, unsigned char *blk, int len)
des_cbc3_decrypt(blk, blk, len, keys);
}
#ifdef ENABLE_3DES_SSH2_CTR
static void des3_ssh2_sdctr(void *handle, unsigned char *blk, int len)
{
DESContext *keys = (DESContext *) handle;
des_sdctr3(blk, blk, len, keys);
}
#endif
static void des_ssh2_encrypt_blk(void *handle, unsigned char *blk, int len)
{