-
Notifications
You must be signed in to change notification settings - Fork 19.9k
Add Digital Signature Algorithm (DSA) implementation for signing and verifying messages #5336
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5336 +/- ##
============================================
- Coverage 42.87% 42.72% -0.15%
- Complexity 2661 2662 +1
============================================
Files 522 525 +3
Lines 15483 15538 +55
Branches 2950 2952 +2
============================================
+ Hits 6638 6639 +1
- Misses 8560 8615 +55
+ Partials 285 284 -1 ☔ View full report in Codecov by Sentry. |
|
||
// Initialize the KeyPairGenerator with a key size and a secure random number generator | ||
SecureRandom secureRandom = new SecureRandom(); | ||
keyPairGenerator.initialize(1024, secureRandom); |
Check failure
Code scanning / CodeQL
Use of a cryptographic algorithm with insufficient key size High
key size
public static String getMd5(String input) { | ||
try { | ||
// Create a MessageDigest instance for MD5 | ||
MessageDigest md = MessageDigest.getInstance("MD5"); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm High
MD5
|
||
// Initialize the KeyPairGenerator with a key size and a secure random number generator | ||
SecureRandom secureRandom = new SecureRandom(); | ||
keyPairGenerator.initialize(1024, secureRandom); |
Check failure
Code scanning / CodeQL
Use of a cryptographic algorithm with insufficient key size High test
key size
public static String getMd5(String input) { | ||
try { | ||
// Create a MessageDigest instance for MD5 | ||
MessageDigest md = MessageDigest.getInstance("MD5"); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm High test
clang-format -i --style=file path/to/your/file.java