gnu-crypto-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU Crypto] Problem when running crypto


From: Casey Marshall
Subject: Re: [GNU Crypto] Problem when running crypto
Date: Tue, 15 Mar 2005 09:37:47 -0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

>>>>> "bparker" == bparker  <address@hidden> 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 || address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]