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

ESP Encryption Key



Hi , I have a question related to esp ncryption key , I am using 3des so I set my keys as case 1: { 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01, 0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03} Here problem is this If I use the keys s case 2: { 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01, 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01, 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01} the encrypted results are same in case 1 and case 2. Can any one ell why it is same even I am using different keys ? Further when I call des_key_sched function with first key i.e {0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01} the value of my des_key_schedule variable is all 0 , why so ? annt I select key like this . Cheers!! akshay
Follow-Ups: