[Cdsa-dev] Encryption and Decryption data was not proper...hlp pls
Status: Abandoned
Brought to you by:
mdwood-intel
From: raju <ra...@cr...> - 2002-02-23 07:12:00
|
hi all, I've implemented SSLv3.0 using CDSA crypto engine (ofcourse CSP is eay)...one pecular problem I got while decrypting.....I'm running openSSL server/client at one end and my ssl server/client at the other end. if encrypted data comes from openSSL (60 bytes clear,64 bytes encrypted), my ssl is correctly decrypting but length is wrong (56 bytes clear after decrypting)...if i'm sending encrypted data to openssl then it's decrypting correctly but length is wrong (59 bytes after decrypting).. i'm using the following key header in symmetric key KeyHeader.HeaderVersion = CSSM_KEYHEADER_VERSION; KeyHeader.BlobType = CSSM_KEYBLOB_RAW; KeyHeader.Format = CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING; KeyHeader.AlgorithmId = algid; KeyHeader.KeyClass = CSSM_KEYCLASS_SESSION_KEY; KeyHeader.LogicalKeySizeInBits = keysize*8; KeyHeader.KeyUsage = CSSM_KEYUSE_DECRYPT | CSSM_KEYUSE_ENCRYPT; KeyHeader.WrapAlgorithmId = CSSM_ALGID_NONE; apart from this i'm using PKCS5 padding algorithm mode is CBCPadIV8 symmetric alg: DES one more thing both sides (mysdie and openssl side) keys are same Initial ectors are same input data is same (i've wasted my time to test all these things with openssl) from fast 3 days i'm struguling with this problem... pls help me...i've to complete this testing soon... THANKS IN ADVANCE rajulu ponnada |