Skip to content

Improve secure_buffer zeroization and lifecycle APIs#90

Merged
LimiNode merged 1 commit into
mainfrom
codex/improve-secure_buffer-functionality
Sep 7, 2025
Merged

Improve secure_buffer zeroization and lifecycle APIs#90
LimiNode merged 1 commit into
mainfrom
codex/improve-secure_buffer-functionality

Conversation

@LimiNode

@LimiNode LimiNode commented Sep 7, 2025

Copy link
Copy Markdown
Owner

Summary

  • harden secure_zero using memset_s/explicit_bzero or volatile barrier
  • add is_locked, clear, resize and assign helpers
  • document zeroing on buffer resize
  • detect explicit_bzero availability in CMake

Testing

  • cmake .. -DHMACCPP_BUILD_TESTS=ON
  • cmake --build . --target test_all test_totp
  • ctest

https://chatgpt.com/codex/tasks/task_e_68bce8a8ddac832ca758988fcdec16ac

@LimiNode
LimiNode merged commit f7eb83d into main Sep 7, 2025
8 checks passed
@LimiNode
LimiNode deleted the codex/improve-secure_buffer-functionality branch September 7, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant