Clean code

This commit is contained in:
Zhi Guan
2024-06-13 12:18:40 +08:00
parent ed6b7f926e
commit 18ac39ebe3
3 changed files with 3 additions and 10 deletions

View File

@@ -103,7 +103,6 @@ int sm4_ctr_encrypt_update(SM4_CTR_CTX *ctx,
sm4_ctr_encrypt_blocks(&ctx->sm4_key, ctx->ctr, in, nblocks, out);
in += len;
inlen -= len;
out += len;
*outlen += len;
}
if (inlen) {
@@ -187,7 +186,6 @@ int sm4_ctr32_encrypt_update(SM4_CTR_CTX *ctx,
sm4_ctr32_encrypt_blocks(&ctx->sm4_key, ctx->ctr, in, nblocks, out);
in += len;
inlen -= len;
out += len;
*outlen += len;
}
if (inlen) {