getCipherMode

Create a cipher mode filter object

getCipherMode

Parameters

block_cipher BlockCipher

a block cipher object

direction CipherDir

are we encrypting or decrypting?

mode string

the name of the cipher mode to use

padding string

the mode padding to use (only used for ECB, CBC)

Meta