Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Hvitved <[email protected]>
  • Loading branch information
geoffw0 and hvitved authored Dec 11, 2024
1 parent 4b93325 commit ad75906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions rust/ql/lib/codeql/rust/Concepts.qll
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,7 @@ module SqlSanitization {
module Cryptography {
private import codeql.rust.internal.ConceptsShared::Cryptography as SC

/**
* A data-flow node that is an application of a cryptographic algorithm. For example,
* encryption, decryption, signature-validation.
*
* Extend this class to refine existing API models. If you want to model new APIs,
* extend `CryptographicOperation::Range` instead.
*/
class CryptographicOperation extends SC::CryptographicOperation instanceof CryptographicOperation::Range
{ }
final class CryptographicOperation = SC:: CryptographicOperation;

class EncryptionAlgorithm = SC::EncryptionAlgorithm;

Expand Down
2 changes: 1 addition & 1 deletion rust/ql/lib/codeql/rust/frameworks/RustCrypto.qll
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private string simplifyAlgorithmName(string algorithmName) {
* An operation that initializes a cipher through the `cipher::KeyInit` or
* `cipher::KeyIvInit` trait, for example `Des::new` or `cbc::Encryptor<des::Des>::new`.
*/
class StreamCipherInit extends Cryptography::CryptographicOperation::Range, DataFlow::Node {
class StreamCipherInit extends Cryptography::CryptographicOperation::Range {
string algorithmName;

StreamCipherInit() {
Expand Down

0 comments on commit ad75906

Please sign in to comment.