rss
 
comment(s)

archives
J|F|M|A|M|J|J|A|S|O|N|D
(20##) 10 9 8 7 6 5 4 3 2 1 0 <
 
DesktopWeb FormText   guess why Crypto is not failingSat, 28 Aug 2004 18:34:12 GMT # 

this is just a guess: i know explicitly that you cannot pInvoke from an embedded WinForms control without requiring additional permissions. my assumption was that calls to System.Security.Cryptography.*CryptoServiceProviders would pInvoke the native CryptoAPI ... and then throw a SecurityException. but that is not the case. both SHA1CryptoServiceProvider and TripleDESCryptoServiceProvider are working ... without additonal security. i think it is because they are not really doing a pInvoke; instead they are doing [MethodImpl(MethodImplOptions.InternalCall)]. so hashing and symmetric crypto seem to be fine. makes me wonder if pub/pri key encryption will work? the additional burden that might make it break is that the RSA key pairs are stored in the registry