mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
Update zuc_modes.c
In function zuc_eea_encrypt, modify an operator |= to &=.
This commit is contained in:
@@ -44,7 +44,7 @@ void zuc_eea_encrypt(const ZUC_UINT32 *in, ZUC_UINT32 *out, size_t nbits,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (nbits % 32 != 0) {
|
if (nbits % 32 != 0) {
|
||||||
out[nwords - 1] |= (0xffffffff << (32 - (nbits%32)));
|
out[nwords - 1] &= (0xffffffff << (32 - (nbits%32)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user