The ciphers in GNU Crypto can usually be initiallized directly through
their constructors, but the preferred way is to use the
CipherFactory
class, with the following method:
Returns a new cipher instance for the cipher named name, or
null
if no such cipher exists. This method will throw ajava.lang.InternalError
if the new instance's self-test fails.
The class also defines this method: