mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-20 23:36:29 +08:00
Remove cl building warnings
This commit is contained in:
@@ -74,7 +74,7 @@ int sm4_ccm_encrypt(const SM4_KEY *sm4_key, const uint8_t *iv, size_t ivlen,
|
||||
}
|
||||
|
||||
inlen_size = 15 - ivlen;
|
||||
if (inlen_size < 8 && inlen >= (1 << (inlen_size * 8))) {
|
||||
if (inlen_size < 8 && inlen >= ((size_t)1 << (inlen_size * 8))) {
|
||||
error_print();
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user