Re: What's the Difference

2004-03-04 Thread Berin Lautenbach
> Vishal Mahajan wrote: >> Maybe I'll put my question again in other words -- >> >> What's the difference between "wrapping a key" and "encrypting >>a >> key" :-\ ? > > Key wrapping algorithms are especially de

Re: What's the Difference

2004-03-04 Thread Sean Mullan
appropriate functionality. Alternatively if one wants to wrap a key, one will initialize the XMLCipher to WRAP_MODE in order for it to perform the appropriate functionality. Maybe I'll put my question again in other words -- What's the difference between "wrapping a key&quo

Re: What's the Difference

2004-03-04 Thread Vishal Mahajan
functionality. Alternatively if one wants to wrap a key, one will initialize the XMLCipher to WRAP_MODE in order for it to perform the appropriate functionality. Maybe I'll put my question again in other words -- What's the difference between "wrapping a key" and "encrypt

Re: What's the Difference

2004-03-04 Thread Axl Mattheus
one wants to wrap a key, one will initialize the XMLCipher to WRAP_MODE in order for it to perform the appropriate functionality. Ax/ Vishal Mahajan wrote: All, Can someone explain what's the difference between the following two ways of initializing the javax.crypto.Cipher class for encry

Re: What's the Difference

2004-03-04 Thread Davanum Srinivas
Vishal, As far as i can figure out...WRAP_MODE is used for keys, ENCRYPT_MODE is used for the data itself. -- dims --- Vishal Mahajan <[EMAIL PROTECTED]> wrote: > All, > > Can someone explain what's the difference between the following two ways > of initializing the ja

What's the Difference

2004-03-04 Thread Vishal Mahajan
All, Can someone explain what's the difference between the following two ways of initializing the javax.crypto.Cipher class for encrypting a symmetric key: 1) Cipher.init(WRAP_MODE, RSAPublicKey) 2) Cipher.init(ENCRYPT_MODE, RSAPublicKey) I observe that XMLCipher.encryptKey() method a