mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
Remove trailing whitespace
This commit is contained in:
@@ -47,17 +47,17 @@ int test_wolfSSL_EVP_CipherUpdate_Null(void)
|
|||||||
ExpectNotNull(ctx);
|
ExpectNotNull(ctx);
|
||||||
|
|
||||||
/* Initialize with NULL cipher */
|
/* Initialize with NULL cipher */
|
||||||
ExpectIntEQ(wolfSSL_EVP_CipherInit_ex(ctx, wolfSSL_EVP_enc_null(),
|
ExpectIntEQ(wolfSSL_EVP_CipherInit_ex(ctx, wolfSSL_EVP_enc_null(),
|
||||||
NULL, NULL, NULL, 1), WOLFSSL_SUCCESS);
|
NULL, NULL, NULL, 1), WOLFSSL_SUCCESS);
|
||||||
|
|
||||||
/* Test encryption (which should just copy the data) */
|
/* Test encryption (which should just copy the data) */
|
||||||
ExpectIntEQ(wolfSSL_EVP_CipherUpdate(ctx, output, &outputLen,
|
ExpectIntEQ(wolfSSL_EVP_CipherUpdate(ctx, output, &outputLen,
|
||||||
(const unsigned char*)testData,
|
(const unsigned char*)testData,
|
||||||
testDataLen), WOLFSSL_SUCCESS);
|
testDataLen), WOLFSSL_SUCCESS);
|
||||||
|
|
||||||
/* Verify output length matches input length */
|
/* Verify output length matches input length */
|
||||||
ExpectIntEQ(outputLen, testDataLen);
|
ExpectIntEQ(outputLen, testDataLen);
|
||||||
|
|
||||||
/* Verify output data matches input data (no encryption occurred) */
|
/* Verify output data matches input data (no encryption occurred) */
|
||||||
ExpectIntEQ(XMEMCMP(output, testData, testDataLen), 0);
|
ExpectIntEQ(XMEMCMP(output, testData, testDataLen), 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user