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

Member predicate Cryptography :: CryptographicOperation :: 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 ( )