5
5
import cpp
6
6
7
7
/**
8
- * Returns an algorithm that is known to be insecure.
8
+ * Gets the name of an algorithm that is known to be insecure.
9
9
*/
10
10
string getAnInsecureAlgorithmName ( ) {
11
11
result = "DES" or
@@ -16,7 +16,7 @@ string getAnInsecureAlgorithmName() {
16
16
}
17
17
18
18
/**
19
- * Returns the name of a hash algorithm that is insecure if it is being used for
19
+ * Gets the name of a hash algorithm that is insecure if it is being used for
20
20
* encryption (but it is hard to know when that is happening).
21
21
*/
22
22
string getAnInsecureHashAlgorithmName ( ) {
@@ -25,7 +25,7 @@ string getAnInsecureHashAlgorithmName() {
25
25
}
26
26
27
27
/**
28
- * Returns a regular expression for matching strings that look like they
28
+ * Gets the regular expression used for matching strings that look like they
29
29
* contain an algorithm that is known to be insecure.
30
30
*/
31
31
string getInsecureAlgorithmRegex ( ) {
@@ -42,7 +42,7 @@ string getInsecureAlgorithmRegex() {
42
42
}
43
43
44
44
/**
45
- * Returns an algorithms that is known to be secure.
45
+ * Gets the name of an algorithm that is known to be secure.
46
46
*/
47
47
string getASecureAlgorithmName ( ) {
48
48
result = "RSA" or
@@ -55,7 +55,7 @@ string getASecureAlgorithmName() {
55
55
}
56
56
57
57
/**
58
- * Returns a regular expression for matching strings that look like they
58
+ * Gets a regular expression for matching strings that look like they
59
59
* contain an algorithm that is known to be secure.
60
60
*/
61
61
string getSecureAlgorithmRegex ( ) {
0 commit comments