mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
split rsa/dsa/dh
This commit is contained in:
@@ -5,11 +5,17 @@
|
||||
* Such that we can share this logic across our CodeQL analysis of different languages.
|
||||
*/
|
||||
|
||||
/** Returns the minimum recommended key size for asymmetric algorithms (RSA, DSA, and DH). */
|
||||
int minSecureKeySizeAsymmetricNonEc() { result = 2048 }
|
||||
/** Returns the minimum recommended key size for RSA. */
|
||||
int minSecureKeySizeRsa() { result = 2048 }
|
||||
|
||||
/** Returns the minimum recommended key size for elliptic curve (EC) algorithms. */
|
||||
int minSecureKeySizeAsymmetricEc() { result = 256 }
|
||||
/** Returns the minimum recommended key size for DSA. */
|
||||
int minSecureKeySizeDsa() { result = 2048 }
|
||||
|
||||
/** Returns the minimum recommended key size for symmetric algorithmms (AES). */
|
||||
int minSecureKeySizeSymmetric() { result = 128 }
|
||||
/** Returns the minimum recommended key size for DH. */
|
||||
int minSecureKeySizeDh() { result = 2048 }
|
||||
|
||||
/** Returns the minimum recommended key size for elliptic curve cryptography. */
|
||||
int minSecureKeySizeEcc() { result = 256 }
|
||||
|
||||
/** Returns the minimum recommended key size for AES. */
|
||||
int minSecureKeySizeAes() { result = 128 }
|
||||
|
||||
Reference in New Issue
Block a user