mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Merge pull request #1415 from zhwangzh/master
Fix `zuc_eea_encrypt` bug on the last output word
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) {
|
||||
out[nwords - 1] |= (0xffffffff << (32 - (nbits%32)));
|
||||
out[nwords - 1] &= (0xffffffff << (32 - (nbits%32)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user