Skip to content

Comments

Implement static code analysis rule to analyse hard coded counter mode initialization vectors#603

Merged
ThisaruGuruge merged 3 commits intoballerina-platform:masterfrom
nureka-rodrigo:master
Sep 18, 2025
Merged

Implement static code analysis rule to analyse hard coded counter mode initialization vectors#603
ThisaruGuruge merged 3 commits intoballerina-platform:masterfrom
nureka-rodrigo:master

Conversation

@nureka-rodrigo
Copy link
Contributor

Purpose

Fix: ballerina-platform/ballerina-library#8010

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@codecov
Copy link

codecov bot commented Sep 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.22%. Comparing base (d143cc3) to head (b572775).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #603   +/-   ##
=========================================
  Coverage     82.22%   82.22%           
  Complexity      239      239           
=========================================
  Files            29       29           
  Lines          1367     1367           
  Branches        190      190           
=========================================
  Hits           1124     1124           
  Misses          197      197           
  Partials         46       46           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nureka-rodrigo
Copy link
Contributor Author

@ThisaruGuruge Could you please review this PR also?

@sonarqubecloud
Copy link

@nureka-rodrigo
Copy link
Contributor Author

@ThisaruGuruge PRAM

@ThisaruGuruge ThisaruGuruge merged commit 4c3fa51 into ballerina-platform:master Sep 18, 2025
8 checks passed
TharmiganK pushed a commit that referenced this pull request Oct 21, 2025
…e initialization vectors (#603)

* Implement static code analysis rule to analyse hardcoded counter mode initialization vectors

* Add Jackson Databind dependency and improve JSON normalization in tests

* Add failure assertion for unhandled rules in StaticCodeAnalyzerTest

(cherry picked from commit 4c3fa51)
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.

Implement static analysis rule "Counter Mode initialization vectors should not be reused" in Crypto module

2 participants