CodeQL library for Python
codeql/python-all 2.2.0 (changelog, source)
Search

Member predicate Cryptography::CryptographicOperation::Range::getBlockMode

Gets the block mode used to perform this cryptographic operation.

This predicate is only expected to have a result if two conditions hold:

  1. The operation is an encryption operation, i.e. the algorithm used is an EncryptionAlgorithm, and
  2. The algorithm used is a block cipher (not a stream cipher).

If either of these conditions do not hold, then this predicate should have no result.

BlockMode getBlockMode()