Skip to content

Commit 51db147

Browse files
geoffw0jbj
andauthored
Apply suggestions from code review
Co-authored-by: Jonas Jensen <[email protected]>
1 parent 4c088b1 commit 51db147

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpp/ql/src/semmle/code/cpp/security/Encryption.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import cpp
66

77
/**
8-
* Returns an algorithm that is known to be insecure.
8+
* Gets the name of an algorithm that is known to be insecure.
99
*/
1010
string getAnInsecureAlgorithmName() {
1111
result = "DES" or
@@ -16,7 +16,7 @@ string getAnInsecureAlgorithmName() {
1616
}
1717

1818
/**
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
2020
* encryption (but it is hard to know when that is happening).
2121
*/
2222
string getAnInsecureHashAlgorithmName() {
@@ -25,7 +25,7 @@ string getAnInsecureHashAlgorithmName() {
2525
}
2626

2727
/**
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
2929
* contain an algorithm that is known to be insecure.
3030
*/
3131
string getInsecureAlgorithmRegex() {
@@ -42,7 +42,7 @@ string getInsecureAlgorithmRegex() {
4242
}
4343

4444
/**
45-
* Returns an algorithms that is known to be secure.
45+
* Gets the name of an algorithm that is known to be secure.
4646
*/
4747
string getASecureAlgorithmName() {
4848
result = "RSA" or
@@ -55,7 +55,7 @@ string getASecureAlgorithmName() {
5555
}
5656

5757
/**
58-
* Returns a regular expression for matching strings that look like they
58+
* Gets a regular expression for matching strings that look like they
5959
* contain an algorithm that is known to be secure.
6060
*/
6161
string getSecureAlgorithmRegex() {

0 commit comments

Comments
 (0)