Cross platform encryption/decryption
Cross platform encryption/decryption
- Subject: Cross platform encryption/decryption
- From: Ian was here <email@hidden>
- Date: Tue, 27 Feb 2007 15:59:56 -0800 (PST)
I am trying to use LibCdsaCrypt as a cross platform
solution. I can encrypt a plain text file on Mac OS X
and decrypt that same file just fine. If I encrypt a
file and send it to Windows XP. The .NET application
can't decrypt it (and vice versa). I am using DES with
a 64-bit key. I have verified the padding, password,
and IV on both platforms.
I modified the genCryptHandle() function slightly so
that if CSSM_ALGID_DES, then encrPad =
CSSM_PADDING_PKCS7; rather than CSSM_PADDING_PKCS5.
This is because .NET does not support PKCS5.
Has anyone had any issues with this before? Thanks.
____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden