projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sebastian Kuschel reports that pfd_closing can be called for a socket
[u/mdw/putty]
/
sshaes.c
diff --git
a/sshaes.c
b/sshaes.c
index
2800e02
..
97935b7
100644
(file)
--- a/
sshaes.c
+++ b/
sshaes.c
@@
-1157,7
+1157,7
@@
void aes256_encrypt_pubkey(unsigned char *key, unsigned char *blk, int len)
aes_setup(&ctx, 16, key, 32);
memset(ctx.iv, 0, sizeof(ctx.iv));
aes_encrypt_cbc(blk, len, &ctx);
aes_setup(&ctx, 16, key, 32);
memset(ctx.iv, 0, sizeof(ctx.iv));
aes_encrypt_cbc(blk, len, &ctx);
-
memset(&ctx, 0
, sizeof(ctx));
+
smemclr(&ctx
, sizeof(ctx));
}
void aes256_decrypt_pubkey(unsigned char *key, unsigned char *blk, int len)
}
void aes256_decrypt_pubkey(unsigned char *key, unsigned char *blk, int len)
@@
-1166,7
+1166,7
@@
void aes256_decrypt_pubkey(unsigned char *key, unsigned char *blk, int len)
aes_setup(&ctx, 16, key, 32);
memset(ctx.iv, 0, sizeof(ctx.iv));
aes_decrypt_cbc(blk, len, &ctx);
aes_setup(&ctx, 16, key, 32);
memset(ctx.iv, 0, sizeof(ctx.iv));
aes_decrypt_cbc(blk, len, &ctx);
-
memset(&ctx, 0
, sizeof(ctx));
+
smemclr(&ctx
, sizeof(ctx));
}
static const struct ssh2_cipher ssh_aes128_ctr = {
}
static const struct ssh2_cipher ssh_aes128_ctr = {