diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-10 17:53:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-10 17:53:55 +0000 |
commit | 4090625b5c6886f380047337cdcf97fe4c62e43e (patch) | |
tree | 95e8f916fcc75c378649e8e892bad4a4075f28b6 /usr.bin | |
parent | b440e6f31f70cf106237e6ba3e0aeb7044a684e6 (diff) |
use right sizeof in memcpy; markus ok
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/rijndael.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/rijndael.c b/usr.bin/ssh/rijndael.c index a5d680420fe..6e310075d18 100644 --- a/usr.bin/ssh/rijndael.c +++ b/usr.bin/ssh/rijndael.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rijndael.c,v 1.13 2001/12/19 07:18:56 deraadt Exp $ */ +/* $OpenBSD: rijndael.c,v 1.14 2002/07/10 17:53:54 deraadt Exp $ */ /** * rijndael-alg-fst.c @@ -1224,7 +1224,7 @@ rijndael_set_key(rijndael_ctx *ctx, u_char *key, int bits, int encrypt) memset(ctx->dk, 0, sizeof(ctx->dk)); } else { ctx->decrypt = 1; - memcpy(ctx->dk, ctx->ek, sizeof(ctx->ek)); + memcpy(ctx->dk, ctx->ek, sizeof(ctx->dk)); rijndaelKeySetupDec(ctx->dk, key, bits, ctx->Nr); } } |