diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-11 06:01:29 +0200 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-11 06:01:29 +0200 |
commit | 6f893880ccc7b489e15493ae9e2d18507f6bd78a (patch) | |
tree | 961cbcd6b74337a5307edad052e6affa53188bf4 /rijndael.c | |
parent | - itojun@cvs.openbsd.org 2002/07/10 10:28:15 (diff) | |
download | openssh-6f893880ccc7b489e15493ae9e2d18507f6bd78a.tar.xz openssh-6f893880ccc7b489e15493ae9e2d18507f6bd78a.zip |
- deraadt@cvs.openbsd.org 2002/07/10 17:53:54
[rijndael.c]
use right sizeof in memcpy; markus ok
Diffstat (limited to 'rijndael.c')
-rw-r--r-- | rijndael.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rijndael.c b/rijndael.c index 448048ea6..6965ca3b0 100644 --- a/rijndael.c +++ b/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 @@ -1226,7 +1226,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); } } |