Only 80 characters a line

This commit is contained in:
Juliusz Sosinowicz
2020-04-28 12:38:02 +02:00
parent 01a6dded72
commit c02c408409

View File

@@ -753,7 +753,8 @@ int wolfSSL_EVP_CipherFinal(WOLFSSL_EVP_CIPHER_CTX *ctx,
case AES_128_GCM_TYPE: case AES_128_GCM_TYPE:
case AES_192_GCM_TYPE: case AES_192_GCM_TYPE:
case AES_256_GCM_TYPE: case AES_256_GCM_TYPE:
if (!ctx->enc && ctx->gcmDecryptBuffer && ctx->gcmDecryptBufferLen > 0) { if (!ctx->enc && ctx->gcmDecryptBuffer &&
ctx->gcmDecryptBufferLen > 0) {
/* decrypt confidential data*/ /* decrypt confidential data*/
ret = wc_AesGcmDecrypt(&ctx->cipher.aes, out, ret = wc_AesGcmDecrypt(&ctx->cipher.aes, out,
ctx->gcmDecryptBuffer, ctx->gcmDecryptBufferLen, ctx->gcmDecryptBuffer, ctx->gcmDecryptBufferLen,
@@ -820,7 +821,8 @@ int wolfSSL_EVP_CipherFinal(WOLFSSL_EVP_CIPHER_CTX *ctx,
XMEMCPY(out, ctx->lastBlock, fl); XMEMCPY(out, ctx->lastBlock, fl);
*outl = fl; *outl = fl;
if (ctx->lastUsed == 0 && ctx->bufUsed == 0) { if (ctx->lastUsed == 0 && ctx->bufUsed == 0) {
/* return error in cases where the block length is incorrect */ /* return error in cases where the block length is
* incorrect */
WOLFSSL_MSG("Final Cipher Block bad length"); WOLFSSL_MSG("Final Cipher Block bad length");
ret = WOLFSSL_FAILURE; ret = WOLFSSL_FAILURE;
} }
@@ -830,7 +832,8 @@ int wolfSSL_EVP_CipherFinal(WOLFSSL_EVP_CIPHER_CTX *ctx,
} }
} }
else if (ctx->lastUsed == 0 && ctx->bufUsed == 0) { else if (ctx->lastUsed == 0 && ctx->bufUsed == 0) {
/* return error in cases where the block length is incorrect */ /* return error in cases where the block length is
* incorrect */
ret = WOLFSSL_FAILURE; ret = WOLFSSL_FAILURE;
} }
} }