X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fe_des.c;h=ca009f2c5250ebda012f5ef8ceaa52ccd7388777;hp=1e4230493b0c7b1fbb3602d33832fcc3458daa8a;hb=5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6;hpb=85e878f224f16d21c09b1916c72ba0458335df7b diff --git a/crypto/evp/e_des.c b/crypto/evp/e_des.c index 1e4230493b..ca009f2c52 100644 --- a/crypto/evp/e_des.c +++ b/crypto/evp/e_des.c @@ -147,7 +147,8 @@ static int des_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0; DES_cfb_encrypt(c,d,1,1,ctx->cipher_data,(DES_cblock *)ctx->iv, ctx->encrypt); - out[n/8]=(out[n/8]&~(0x80 >> (n%8)))|((d[0]&0x80) >> (n%8)); + out[n/8]=(out[n/8]&~(0x80 >> (unsigned int)(n%8))) | + ((d[0]&0x80) >> (unsigned int)(n%8)); } inl-=chunk; in +=chunk;