mirror of
https://github.com/openssl/openssl.git
synced 2024-12-22 16:33:51 +08:00
fix bug in ccgost CFB mode code
This commit is contained in:
parent
af73b08ac0
commit
5d1a50ac2a
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user