Skip to content

Conversation

@hsiuhsiu
Copy link
Contributor

@hsiuhsiu hsiuhsiu commented Dec 9, 2025

  • Fix BENCHMARK() macros to reference correct functions (BM_HMAC_SHA256, BM_AES_GCM_128, BM_AES_GCM_256) instead of wrong ones
  • Fix typo: BM_AEC_GCM -> BM_AES_GCM
  • Add benchmark::DoNotOptimize() to prevent compiler from optimizing out hash/encryption results
  • Use proper DRBG seeds with sufficient entropy (16 bytes) instead of short "test" string that doesn't meet SEC_P_COM requirement
  • Adjust benchmark input ranges for more meaningful measurements

- Fix BENCHMARK() macros to reference correct functions (BM_HMAC_SHA256, BM_AES_GCM_128, BM_AES_GCM_256) instead of wrong ones
- Fix typo: BM_AEC_GCM -> BM_AES_GCM
- Add benchmark::DoNotOptimize() to prevent compiler from optimizing out hash/encryption results
- Use proper DRBG seeds with sufficient entropy (16 bytes) instead of short "test" string that doesn't meet SEC_P_COM requirement
- Adjust benchmark input ranges for more meaningful measurements
@cb-heimdall
Copy link

cb-heimdall commented Dec 9, 2025

✅ Heimdall Review Status

Requirement Status More Info
Reviews 2/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 2
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 1
Global minimum 0
Max 2
2
1 if commit is unverified 0
Sum 2
CODEOWNERS ✅ None for this change

@hsiuhsiu hsiuhsiu marked this pull request as ready for review December 9, 2025 15:25
Copy link

@valery-osheter-cb valery-osheter-cb left a comment

Choose a reason for hiding this comment

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

Approved

@hsiuhsiu
Copy link
Contributor Author

  • Fix BENCHMARK() macros to reference correct functions (BM_HMAC_SHA256, BM_AES_GCM_128, BM_AES_GCM_256) instead of wrong ones
  • Fix typo: BM_AEC_GCM -> BM_AES_GCM
  • Add benchmark::DoNotOptimize() to prevent compiler from optimizing out hash/encryption results
  • Use proper DRBG seeds with sufficient entropy (16 bytes) instead of short "test" string that doesn't meet SEC_P_COM requirement
  • Adjust benchmark input ranges for more meaningful measurements

@hsiuhsiu hsiuhsiu merged commit 6493b1d into master Dec 12, 2025
8 checks passed
@hsiuhsiu hsiuhsiu deleted the fix-bm-hash branch December 12, 2025 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants