aboutsummaryrefslogtreecommitdiff
path: root/tools/plink/sshaes.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-11-19 13:13:51 +0000
committermarha <marha@users.sourceforge.net>2010-11-19 13:13:51 +0000
commitbd5413c3a7e500fa8c8ccd68a33d2fcc4c172e28 (patch)
treeb77dfbc85a3ad280e488b7840ac42221785e0831 /tools/plink/sshaes.c
parent87e3509a1a9724e6115385686d9121f6c4a0f473 (diff)
parent773752eab55047c33bad0d88006bb69f5c601502 (diff)
downloadvcxsrv-bd5413c3a7e500fa8c8ccd68a33d2fcc4c172e28.tar.gz
vcxsrv-bd5413c3a7e500fa8c8ccd68a33d2fcc4c172e28.tar.bz2
vcxsrv-bd5413c3a7e500fa8c8ccd68a33d2fcc4c172e28.zip
svn merge ^/branches/released .
Diffstat (limited to 'tools/plink/sshaes.c')
-rw-r--r--tools/plink/sshaes.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/plink/sshaes.c b/tools/plink/sshaes.c
index 089e6c5d8..7684cd949 100644
--- a/tools/plink/sshaes.c
+++ b/tools/plink/sshaes.c
@@ -1097,35 +1097,35 @@ static void aes_sdctr(unsigned char *blk, int len, AESContext *ctx)
memcpy(ctx->iv, iv, sizeof(iv));
}
-static void *aes_make_context(void)
+void *aes_make_context(void)
{
return snew(AESContext);
}
-static void aes_free_context(void *handle)
+void aes_free_context(void *handle)
{
sfree(handle);
}
-static void aes128_key(void *handle, unsigned char *key)
+void aes128_key(void *handle, unsigned char *key)
{
AESContext *ctx = (AESContext *)handle;
aes_setup(ctx, 16, key, 16);
}
-static void aes192_key(void *handle, unsigned char *key)
+void aes192_key(void *handle, unsigned char *key)
{
AESContext *ctx = (AESContext *)handle;
aes_setup(ctx, 16, key, 24);
}
-static void aes256_key(void *handle, unsigned char *key)
+void aes256_key(void *handle, unsigned char *key)
{
AESContext *ctx = (AESContext *)handle;
aes_setup(ctx, 16, key, 32);
}
-static void aes_iv(void *handle, unsigned char *iv)
+void aes_iv(void *handle, unsigned char *iv)
{
AESContext *ctx = (AESContext *)handle;
int i;
@@ -1133,13 +1133,13 @@ static void aes_iv(void *handle, unsigned char *iv)
ctx->iv[i] = GET_32BIT_MSB_FIRST(iv + 4 * i);
}
-static void aes_ssh2_encrypt_blk(void *handle, unsigned char *blk, int len)
+void aes_ssh2_encrypt_blk(void *handle, unsigned char *blk, int len)
{
AESContext *ctx = (AESContext *)handle;
aes_encrypt_cbc(blk, len, ctx);
}
-static void aes_ssh2_decrypt_blk(void *handle, unsigned char *blk, int len)
+void aes_ssh2_decrypt_blk(void *handle, unsigned char *blk, int len)
{
AESContext *ctx = (AESContext *)handle;
aes_decrypt_cbc(blk, len, ctx);