Skip to content

API testing additions: cipher tests#10174

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:api_test_cipher_algs_1
Apr 13, 2026
Merged

API testing additions: cipher tests#10174
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:api_test_cipher_algs_1

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

@SparkiDev SparkiDev commented Apr 9, 2026

Description

Fixed wc_AesEaxAuthDataUpdate to check eax for NULL before dereferencing.

Fix AesSivCipher to delete/free AES if new/initialization succeeded.
Memsetting to 0 doesn't work when WC_DEBUG_CIPHER_LIFECYCLE is defined.

Added tests for:

  • AES-EAX streaming
  • AES-SIV
  • Poly1305
  • DES-CBC

Testing

./configure --disable-shared --enable-all

@SparkiDev SparkiDev self-assigned this Apr 9, 2026
@SparkiDev SparkiDev force-pushed the api_test_cipher_algs_1 branch from 013483f to 431ef44 Compare April 9, 2026 21:35
@SparkiDev
Copy link
Copy Markdown
Contributor Author

retest this please

Fixed wc_AesEaxAuthDataUpdate to check eax for NULL before
dereferencing.

Fix AesSivCipher to delete/free AES if new/initialization succeeded.
Memsetting to 0 doesn't work when WC_DEBUG_CIPHER_LIFECYCLE is defined.

Added tests for:
 - AES-EAX streaming
 - AES-SIV
 - Poly1305
 - DES-CBC
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10174

Scan targets checked: wolfcrypt-api_misuse, wolfcrypt-bugs, wolfcrypt-compliance, wolfcrypt-concurrency, wolfcrypt-consttime, wolfcrypt-defaults, wolfcrypt-mutation, wolfcrypt-portability, wolfcrypt-proptest, wolfcrypt-src, wolfcrypt-zeroize

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread wolfcrypt/src/aes.c
@dgarske dgarske merged commit c36beba into wolfSSL:master Apr 13, 2026
807 of 810 checks passed
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.

4 participants