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 designed to provide extra > security for encrypting and decrypting keys, as

Re: What's the Difference

2004-03-04 Thread Sean Mullan
Vishal Mahajan wrote: Axl Mattheus wrote: Vishal, There are different mechanisms used to encrypt/decrypt clear text/cipher text to wrap/unwrap a key. If one wants to encrypt something, one initializes the XMLCipher (javax.crypto.Cipher) to be in ENCRYPT_MODE in order for it to perform the appr

Re: What's the Difference

2004-03-04 Thread Vishal Mahajan
Axl Mattheus wrote: Vishal, There are different mechanisms used to encrypt/decrypt clear text/cipher text to wrap/unwrap a key. If one wants to encrypt something, one initializes the XMLCipher (javax.crypto.Cipher) to be in ENCRYPT_MODE in order for it to perform the appropriate functionality

Re: What's the Difference

2004-03-04 Thread Axl Mattheus
Vishal, There are different mechanisms used to encrypt/decrypt clear text/cipher text to wrap/unwrap a key. If one wants to encrypt something, one initializes the XMLCipher (javax.crypto.Cipher) to be in ENCRYPT_MODE in order for it to perform the appropriate functionality. Alternatively if on

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 javax.crypto.Cipher class