Skip to content

Commit 9491cee

Browse files
committed
update docs
1 parent e4dce73 commit 9491cee

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cpp/ql/lib/experimental/quantum/OpenSSL/Operations/EVPHashOperation.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ private import EVPHashInitializer
99
private import experimental.quantum.OpenSSL.AlgorithmValueConsumers.OpenSSLAlgorithmValueConsumers
1010

1111
class EVP_Digest_Update_Call extends EVPUpdate {
12-
EVP_Digest_Update_Call() { this.(Call).getTarget().getName() in ["EVP_DigestUpdate"] }
12+
EVP_Digest_Update_Call() { this.(Call).getTarget().getName() = "EVP_DigestUpdate" }
1313

1414
override Expr getInputArg() { result = this.(Call).getArgument(1) }
1515
}

cpp/ql/lib/experimental/quantum/OpenSSL/Operations/OpenSSLOperationBase.qll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ private import experimental.quantum.OpenSSL.CtxFlow as CTXFlow
33
private import experimental.quantum.OpenSSL.AlgorithmValueConsumers.OpenSSLAlgorithmValueConsumers
44

55
/**
6-
* All OpenSSL operations.
6+
* A class for all OpenSSL operations.
77
*/
88
abstract class OpenSSLOperation extends Crypto::OperationInstance instanceof Call {
99
/**
@@ -28,12 +28,12 @@ abstract class OpenSSLOperation extends Crypto::OperationInstance instanceof Cal
2828
*/
2929
abstract class EVPInitialize extends Call {
3030
/**
31-
* The context argument that ties together initialization, updates and/or final calls.
31+
* Gets the context argument that ties together initialization, updates and/or final calls.
3232
*/
3333
Expr getContextArg() { result = this.(Call).getArgument(0) }
3434

3535
/**
36-
* The type of key operation, none if not applicable.
36+
* Gets the type of key operation, none if not applicable.
3737
*/
3838
Crypto::KeyOperationSubtype getKeyOperationSubtype() { none() }
3939

@@ -44,12 +44,12 @@ abstract class EVPInitialize extends Call {
4444
Expr getAlgorithmArg() { none() }
4545

4646
/**
47-
* The key for the operation, none if not applicable.
47+
* Gets the key for the operation, none if not applicable.
4848
*/
4949
Expr getKeyArg() { none() }
5050

5151
/**
52-
* The IV/nonce, none if not applicable.
52+
* Gets the IV/nonce, none if not applicable.
5353
*/
5454
Expr getIVArg() { none() }
5555
}
@@ -61,7 +61,7 @@ abstract class EVPInitialize extends Call {
6161
*/
6262
abstract class EVPUpdate extends Call {
6363
/**
64-
* The context argument that ties together initialization, updates and/or final calls.
64+
* Gets the context argument that ties together initialization, updates and/or final calls.
6565
*/
6666
Expr getContextArg() { result = this.(Call).getArgument(0) }
6767

@@ -98,7 +98,7 @@ private module AlgGetterToAlgConsumerFlow = DataFlow::Global<AlgGetterToAlgConsu
9898
*/
9999
abstract class EVPOperation extends OpenSSLOperation {
100100
/**
101-
* The context argument that ties together initialization, updates and/or final calls.
101+
* Gets the context argument that ties together initialization, updates and/or final calls.
102102
*/
103103
Expr getContextArg() { result = this.(Call).getArgument(0) }
104104

@@ -138,7 +138,7 @@ abstract class EVPOperation extends OpenSSLOperation {
138138
}
139139

140140
/**
141-
* Final calls of EVP API.
141+
* The final calls of the EVP API.
142142
*/
143143
abstract class EVPFinal extends EVPOperation {
144144
/**
@@ -149,13 +149,13 @@ abstract class EVPFinal extends EVPOperation {
149149
}
150150

151151
/**
152-
* The input data was provided to all update calls.
152+
* Gets the input data provided to all update calls.
153153
* If more input data was provided in the final call, override the method.
154154
*/
155155
override Expr getInputArg() { result = this.getUpdateCalls().getInputArg() }
156156

157157
/**
158-
* The output data was provided to all update calls.
158+
* Gets the output data provided to all update calls.
159159
* If more output data was provided in the final call, override the method.
160160
*/
161161
override Expr getOutputArg() { result = this.getUpdateCalls().getOutputArg() }

0 commit comments

Comments
 (0)