diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 00:33:06 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 00:33:06 +0000 |
commit | 5d1a50ac2a1bf1ef36102f17fd43e988d03cf7ec (patch) | |
tree | 498a98542e7f591430cc61a0f0bfabe89689cf3d /engines/ccgost/gost_crypt.c | |
parent | af73b08ac09dfa0c548f3eacc00db4c882db1fbe (diff) | |
download | openssl-5d1a50ac2a1bf1ef36102f17fd43e988d03cf7ec.tar.gz |
fix bug in ccgost CFB mode code
Diffstat (limited to 'engines/ccgost/gost_crypt.c')
-rw-r--r-- | engines/ccgost/gost_crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/ccgost/gost_crypt.c b/engines/ccgost/gost_crypt.c index 44f4e49bc9..4977d1dcf5 100644 --- a/engines/ccgost/gost_crypt.c +++ b/engines/ccgost/gost_crypt.c @@ -299,7 +299,7 @@ int gost_cipher_do_cfb(EVP_CIPHER_CTX *ctx, unsigned char *out, if (i<inl) { gost_crypt_mesh(ctx->cipher_data,ctx->iv,ctx->buf); - if (!ctx->encrypt) memcpy(ctx->buf+8,in_ptr,j); + if (!ctx->encrypt) memcpy(ctx->buf+8,in_ptr,inl-i); for (j=0;i<inl;j++,i++) { out_ptr[j]=ctx->buf[j]^in_ptr[j]; |