-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new rule G407 to detect hard-coded nonce and initialization vectors in crypto algorithms #1197
Add new rule G407 to detect hard-coded nonce and initialization vectors in crypto algorithms #1197
Commits on Aug 30, 2024
-
Added new rule G407(hardcoded IV/nonce)
The rule is supposed to detect for the usage of hardcoded or static nonce/Iv in many encryption algorithms: * The different modes of AES (mainly tested here) * It should be able to work with ascon Currently the rules doesn't check when constant variables are used. TODO: Improve the rule, to detected for constatant variable usage
Configuration menu - View commit details
-
Copy full SHA for f61230d - Browse repository at this point
Copy the full SHA f61230dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c50ed - Browse repository at this point
Copy the full SHA f5c50edView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6bd7b7 - Browse repository at this point
Copy the full SHA f6bd7b7View commit details -
Updated analyzer to use new way of initialization
* Removed old way of initializing analyzers * Added the new analyzer to the rest of the default analyzers * Fixed small bug in the rule * Removed the test for the new analyzer from the file responsible for testing the rules * Merged the diffrent examples into 1 variable * Added tests for the analyzer * Removed code that was used for testing rules, but it was used to test the analyzer
Configuration menu - View commit details
-
Copy full SHA for 4566ab8 - Browse repository at this point
Copy the full SHA 4566ab8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ed176e - Browse repository at this point
Copy the full SHA 5ed176eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0b104c - Browse repository at this point
Copy the full SHA b0b104cView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa09694 - Browse repository at this point
Copy the full SHA aa09694View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae01dcd - Browse repository at this point
Copy the full SHA ae01dcdView commit details -
Pass the value argument directly since is an interface
The value doens't require to be passed as a pointer since is a interface. Change-Id: Ia21bceb5f315f4c30bd28425d62f678e9203e93f Signed-off-by: Cosmin Cojocar <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5381af - Browse repository at this point
Copy the full SHA a5381afView commit details -
Refactor to reduce some fuctions and variable names
Change-Id: I7f42c1de4e39dceb8e8144037d5af9223331ff06 Signed-off-by: Cosmin Cojocar <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d9c15b9 - Browse repository at this point
Copy the full SHA d9c15b9View commit details -
Change-Id: I49caeb75f1bd7ecdb9b4f99466d96ad81e2e95ac Signed-off-by: Cosmin Cojocar <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cb3c831 - Browse repository at this point
Copy the full SHA cb3c831View commit details -
Make variable names more explicity and reduce duplications
Change-Id: Ifa141b70351136cfe7d0756a83e8166a24b5d538 Signed-off-by: Cosmin Cojocar <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4c16ef5 - Browse repository at this point
Copy the full SHA 4c16ef5View commit details -
Change-Id: I5b863c0da6cc3d01efa527c60c93fdcbc8c5a53c Signed-off-by: Cosmin Cojocar <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d9eaa05 - Browse repository at this point
Copy the full SHA d9eaa05View commit details