Re: About Wrap Key

2007-09-26 Thread Rio
exception didn't appear. thanks Rio - Original Message - From: Rio To: security-dev@xml.apache.org Sent: Thursday, September 27, 2007 1:59 PM Subject: Re: About Wrap Key Hi yes, I didn't use the IV for my test case - Original Message - Fr

Re: About Wrap Key

2007-09-26 Thread Rio
by an Initialization Vector (IV) which is probably different for the two different wrap operations. Did you try and unwrap/decrypt the wrapped key in the two cases and see if that results back in the same key? Vishal on 09/26/2007 5:36 PM Rio wrote: Hi, I found a problem as fo

About Wrap Key

2007-09-26 Thread Rio
Hi, I found a problem as follows Key toBeWrappedKey = Generator("DESede", 168); Key wrapKey = Generator("DESede", 112); Cipher cipher = Cipher.getInstance("DESede/CBC/ISO10126Padding"); cipher.init(Cipher.WRAP_MODE, wrapKey); byte[] wrapp