Skip to content

Make DesfireCrypto header self-contained - #2

Merged
GtechGovind merged 1 commit into
masterfrom
agent/test-multiblock-cmac
Aug 8, 2026
Merged

Make DesfireCrypto header self-contained#2
GtechGovind merged 1 commit into
masterfrom
agent/test-multiblock-cmac

Conversation

@GtechGovind

Copy link
Copy Markdown
Owner

What changed

Add the standard <cstdint> include to the public DesfireCrypto.h header.

Why

PR #1 exposed the implementation as a standalone CMake library. Its Linux CI then showed that the public header uses uint8_t without including the header that defines it. macOS received the type transitively, masking the portability issue.

This makes the header self-contained and restores the CMake build on Linux.

Validation

  • compiled DesfireCrypto.cpp as an independent translation unit with strict warnings
  • compiled AES.cpp independently with strict warnings
  • all four NIST AES-CMAC vectors pass under AddressSanitizer and UndefinedBehaviorSanitizer
  • git diff --check passes

@GtechGovind
GtechGovind marked this pull request as ready for review August 8, 2026 18:48
@GtechGovind
GtechGovind merged commit aaf10a9 into master Aug 8, 2026
2 checks passed
@GtechGovind
GtechGovind deleted the agent/test-multiblock-cmac branch August 8, 2026 18:48
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