File tree Expand file tree Collapse file tree 3 files changed +36
-12
lines changed
javascript/ql/lib/semmle/javascript/internal
python/ql/lib/semmle/python/internal
ruby/ql/lib/codeql/ruby/internal Expand file tree Collapse file tree 3 files changed +36
-12
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ module Cryptography {
45
45
46
46
/**
47
47
* Gets the block mode used to perform this cryptographic operation.
48
- * This may have no result - for example if the `CryptographicAlgorithm` used
49
- * is a stream cipher rather than a block cipher.
48
+ *
49
+ * This predicate is only expected to have a result if two conditions hold:
50
+ * 1. The operation is an encryption operation, i.e. the algorithm used is an `EncryptionAlgorithm`, and
51
+ * 2. The algorithm used is a block cipher (not a stream cipher).
52
+ *
53
+ * If either of these conditions do not hold, then this predicate should have no result.
50
54
*/
51
55
BlockMode getBlockMode ( ) { result = super .getBlockMode ( ) }
52
56
}
@@ -69,8 +73,12 @@ module Cryptography {
69
73
70
74
/**
71
75
* Gets the block mode used to perform this cryptographic operation.
72
- * This may have no result - for example if the `CryptographicAlgorithm` used
73
- * is a stream cipher rather than a block cipher.
76
+ *
77
+ * This predicate is only expected to have a result if two conditions hold:
78
+ * 1. The operation is an encryption operation, i.e. the algorithm used is an `EncryptionAlgorithm`, and
79
+ * 2. The algorithm used is a block cipher (not a stream cipher).
80
+ *
81
+ * If either of these conditions do not hold, then this predicate should have no result.
74
82
*/
75
83
abstract BlockMode getBlockMode ( ) ;
76
84
}
Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ module Cryptography {
45
45
46
46
/**
47
47
* Gets the block mode used to perform this cryptographic operation.
48
- * This may have no result - for example if the `CryptographicAlgorithm` used
49
- * is a stream cipher rather than a block cipher.
48
+ *
49
+ * This predicate is only expected to have a result if two conditions hold:
50
+ * 1. The operation is an encryption operation, i.e. the algorithm used is an `EncryptionAlgorithm`, and
51
+ * 2. The algorithm used is a block cipher (not a stream cipher).
52
+ *
53
+ * If either of these conditions do not hold, then this predicate should have no result.
50
54
*/
51
55
BlockMode getBlockMode ( ) { result = super .getBlockMode ( ) }
52
56
}
@@ -69,8 +73,12 @@ module Cryptography {
69
73
70
74
/**
71
75
* Gets the block mode used to perform this cryptographic operation.
72
- * This may have no result - for example if the `CryptographicAlgorithm` used
73
- * is a stream cipher rather than a block cipher.
76
+ *
77
+ * This predicate is only expected to have a result if two conditions hold:
78
+ * 1. The operation is an encryption operation, i.e. the algorithm used is an `EncryptionAlgorithm`, and
79
+ * 2. The algorithm used is a block cipher (not a stream cipher).
80
+ *
81
+ * If either of these conditions do not hold, then this predicate should have no result.
74
82
*/
75
83
abstract BlockMode getBlockMode ( ) ;
76
84
}
Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ module Cryptography {
45
45
46
46
/**
47
47
* Gets the block mode used to perform this cryptographic operation.
48
- * This may have no result - for example if the `CryptographicAlgorithm` used
49
- * is a stream cipher rather than a block cipher.
48
+ *
49
+ * This predicate is only expected to have a result if two conditions hold:
50
+ * 1. The operation is an encryption operation, i.e. the algorithm used is an `EncryptionAlgorithm`, and
51
+ * 2. The algorithm used is a block cipher (not a stream cipher).
52
+ *
53
+ * If either of these conditions do not hold, then this predicate should have no result.
50
54
*/
51
55
BlockMode getBlockMode ( ) { result = super .getBlockMode ( ) }
52
56
}
@@ -69,8 +73,12 @@ module Cryptography {
69
73
70
74
/**
71
75
* Gets the block mode used to perform this cryptographic operation.
72
- * This may have no result - for example if the `CryptographicAlgorithm` used
73
- * is a stream cipher rather than a block cipher.
76
+ *
77
+ * This predicate is only expected to have a result if two conditions hold:
78
+ * 1. The operation is an encryption operation, i.e. the algorithm used is an `EncryptionAlgorithm`, and
79
+ * 2. The algorithm used is a block cipher (not a stream cipher).
80
+ *
81
+ * If either of these conditions do not hold, then this predicate should have no result.
74
82
*/
75
83
abstract BlockMode getBlockMode ( ) ;
76
84
}
You can’t perform that action at this time.
0 commit comments