From 181f4390288207f284f6060950cc5a8e8e391e55 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 9 Dec 2020 14:04:16 -0600 Subject: [PATCH] api.c: in test_wolfSSL_EVP_X_STATE_LEN(), fix assert on size of EVP state to work on 32 bit targets. --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index a538bae1e..b6e2ce97d 100644 --- a/tests/api.c +++ b/tests/api.c @@ -34233,7 +34233,7 @@ static void test_wolfSSL_EVP_X_STATE_LEN(void) wolfSSL_EVP_CIPHER_CTX_init(ctx); AssertIntEQ(EVP_CipherInit(ctx, init, key, iv, 1), WOLFSSL_SUCCESS); - AssertIntEQ(wolfSSL_EVP_X_STATE_LEN(ctx), 272); + AssertIntEQ(wolfSSL_EVP_X_STATE_LEN(ctx), sizeof(Arc4)); EVP_CIPHER_CTX_free(ctx);