Skip to content

Implement teardown contract for ESPCrypto#1

Merged
zekageri merged 1 commit intomainfrom
feature/esp-crypto/teardown/teardown-contract-esp-crypto
Feb 24, 2026
Merged

Implement teardown contract for ESPCrypto#1
zekageri merged 1 commit intomainfrom
feature/esp-crypto/teardown/teardown-contract-esp-crypto

Conversation

@zekageri
Copy link
Copy Markdown
Collaborator

Summary

  • add static lifecycle APIs to ESPCrypto: deinit() and isInitialized()
  • centralize global runtime state (policy, nonce-guard cache, NVS init cache, boot counter) and reset it in idempotent deinit()
  • mark runtime initialization in policy-gated and cache-backed paths while keeping overhead low
  • add teardown lifecycle tests for pre-init safety, repeated deinit, and deinit -> use -> deinit re-init flow
  • update README and basic_hash_and_aes example to show explicit teardown usage

Testing

  • not run locally (pio and cmake are not available in this environment)

@zekageri zekageri merged commit d66668c into main Feb 24, 2026
6 checks passed
@zekageri zekageri deleted the feature/esp-crypto/teardown/teardown-contract-esp-crypto branch February 26, 2026 13:31
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.

1 participant