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

RE: [iaik-jce] Data encryption questions ?




	Hi,

	Thanks for the answers. I will be using the JCE algorithms for doing
data encryption over the wire. we need an algorithm which is sort of a
standard NIST approved 
	algorithm but at the same time is the fastest.

	I have some more questions: -

	1.	Is ECB cipher mode faster than CBC ?
	
	2.	Is the IAIK-JCE implementation tested on platforms like SUN
solaris, Macintosh (OS 7.5, 8.0), HP-UX (10.x) 
	
	3.	Does IAIK support RC4 ?  Is the code written the same way as
for RC2 ?
	
	4.	According to the howfast.htm document the speed varies with
the blocksize ? So if i have a higher blocksize then my speed increases ?
		Can you change the blocksize ? What are the
pitfalls/advantages of doing that ?
	
	5.	To achieve maximum speed for RC4(data encryption between
applet and Application server, middleware used is CORBA) which block size
should i use ? 
		which cipher mode ?,  what is the padding scheme to be used
? 

		6.		I was reading the Cryptography FAQ's on
RSA's  site and they mentioned that RC2 is 2-3 times faster than DES in
software. But
				according to your speed test DES is faster.
Do you know why ?
	 
	Thanks,

	Sachin

> -----Original Message-----
> From:	Andreas Sterbenz [SMTP:Andreas.Sterbenz@iaik.tu-graz.ac.at]
> Sent:	Thursday, September 16, 1999 7:24 AM
> To:	Gadre, Sachin; iaik-jce@iaik.tu-graz.ac.at
> Subject:	Re: [iaik-jce] Data encryption questions ?
> 
> 1. You would do something like:
>     iaik.security.provider.IAIK.addAsProvider(true);
>     KeyGenerator kg = KeyGenerator.getInstance("RC2");
>     kg.init(40);
>     Key key = kg.generateKey();
>     Cipher cipher = Cipher.getInstance("RC2/ECB/PKCS5Padding");
>     cipher.init(Cipher.ENCRYPT_MODE, key);
> 
> Note that CBC is usually to be prefered over ECB for block ciphers.
> 
> 2. In order fastest to slowest they are: RC4, DES, RC2, TripleDES. Single
> DES cannot be recommended due to the short keylength, RC2 is not too
> fashionable either. TripleDES has the advantage that it is the best
> studied cipher, but it is very slow compared to IDEA or even RC4. For
> speed tests see also http://jcewww.iaik.at/jce/howfast.htm or execute
> demo.TestSpeed.
> 
> Regards,
> 
>  Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at
> 
> -----Ursprüngliche Nachricht-----
> Von: Gadre, Sachin <sgadre@kpmg.com>
> An: <iaik-jce@iaik.tu-graz.ac.at>
> Gesendet: Dienstag, 14. September 1999 18:01
> Betreff: [iaik-jce] Data encryption questions ?
> 
> 
> >
> > All,
> >
> > 1. How to generate a RC2 40 bit key and use it with an RC2
> > cipher having block mode as 'RC2/ECB/PKCS5Padding" using IAIk-JCE?
> >
> > 2. Out of the following :-  DES, Triple -DES, RC2, RC4 or any
> > FIPS-140 complaint algorithm, which algorithm is the fastest for
> > data encryption/decryption.
> >
> >
> > Thanks,
> >
> > Sachin
> >
> *************************************************************************
> ****
> > The information in this email is confidential and may be legally
> privileged.
> > It is intended solely for the addressee. Access to this email by anyone
> else
> > is unauthorized.
> >
> > If you are not the intended recipient, any disclosure, copying,
> distribution
> > or any action taken or omitted to be taken in reliance on it, is
> prohibited
> > and may be unlawful. When addressed to our clients any opinions or
> advice
> > contained in this email are subject to the terms and conditions
> expressed in
> > the governing KPMG client engagement letter.
> >
> *************************************************************************
> ****
> > --
> > Mailinglist-archive at
> http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html
> >
> > To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the
> folowing content: UNSUBSCRIBE iaik-jce
> >
> >
> >
> 
> 
*****************************************************************************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.         
*****************************************************************************
--
Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html

To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the folowing content: UNSUBSCRIBE iaik-jce