The preferred way to get mode instances is through the
ModeFactory
class, from one of the following methods:
Returns an instance of cipher wrapped in an instance of mode, initialized to a block size of cipherBlockSize, or returns
null
if no appropriate cipher or mode is available. The mode argument is one of the names described above, and cipher is one of the names described in the Ciphers chapter.
Returns an instance of mode using the already-initialized cipher, initializing the mode with a block size of cipherBlockSize, or returns
null
if no appropriate mode is available.
Additionally the following method is defined: