mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
Update aes_modes.c
This commit is contained in:
@@ -99,7 +99,7 @@ int aes_cbc_padding_decrypt(const AES_KEY *key, const uint8_t iv[16],
|
|||||||
static void ctr_incr(uint8_t a[16])
|
static void ctr_incr(uint8_t a[16])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 15; i > 0; i--) {
|
for (i = 15; i >= 0; i--) {
|
||||||
a[i]++;
|
a[i]++;
|
||||||
if (a[i]) break;
|
if (a[i]) break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user