Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NULL_CIPHER_TYPE support to wolfSSL_EVP_CipherUpdate() #8516

Closed

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Add NULL_CIPHER_TYPE support to wolfSSL_EVP_CipherUpdate()

This PR implements support for the NULL_CIPHER_TYPE in wolfSSL_EVP_CipherUpdate() and adds comprehensive test cases in tests/api/test_evp.c.

Changes:

  1. Added NULL_CIPHER_TYPE case in wolfSSL_EVP_CipherUpdate() function

    • Implemented direct memory copy using XMEMCPY
    • Set output length equal to input length
    • Return WOLFSSL_SUCCESS
  2. Created test_evp.c and test_evp.h in tests/api directory with test cases:

    • TestNullCipherUpdate(): Basic functionality test
    • TestNullCipherUpdateEmptyData(): Test with empty data
    • TestNullCipherUpdateLargeData(): Test with large data buffer
    • TestNullCipherUpdateMultiple(): Test multiple update calls
  3. Updated include.am to include the new test files

Testing:

All tests pass successfully with make check

Link to Devin run: https://app.devin.ai/sessions/f8dcc9faba394523a0672d7c81fe1511
Requested by: [email protected]

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@wolfSSL-Bot
Copy link

Can one of the admins verify this patch?

@lealem47
Copy link
Contributor

Salvaged in #8518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants