Update zuc_modes.c

In function zuc_eea_encrypt, modify an operator |= to &=.
This commit is contained in:
zhwangzh
2023-02-19 18:08:36 +08:00
committed by GitHub
parent 79c6b7ce5c
commit 6e122a4d2b

View File

@@ -44,7 +44,7 @@ void zuc_eea_encrypt(const ZUC_UINT32 *in, ZUC_UINT32 *out, size_t nbits,
}
if (nbits % 32 != 0) {
out[nwords - 1] |= (0xffffffff << (32 - (nbits%32)));
out[nwords - 1] &= (0xffffffff << (32 - (nbits%32)));
}
}