>>>>> "bparker" == bparker  <[EMAIL PROTECTED]> writes:

bparker>    I have been getting the following error when running a small sample
bparker>    program to test out using gnu crypto. No matter what algorithm I 
try,
bparker>    even AES by itself, I get the same results. Any insight on what I am
bparker>    doing wrong will be greatly appreciated.
bparker>    Exception in getMainCipher
bparker>    java.security.NoSuchAlgorithmException: AES/CFB/NoPadding not found
bparker>       at javax.crypto.Cipher.getInstance(java.lang.String)

You will usually see this if the GNU Crypto provider is not
installed. You need to either install it at run-time, like this:

  java.security.Security.installProvider (new gnu.crypto.jce.GnuCrypto ());

Or, by adding an entry into /usr/local/lib/security/classpath.security
(the location of that file depends on where you installed GCJ):

  security.provider.N=gnu.crypto.jce.GnuCrypto

Hmm, this should be a FAQ :)

-- 
Casey Marshall || [EMAIL PROTECTED]


_______________________________________________
gnu-crypto-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-crypto-discuss

Reply via email to