CryptoConfig.MapNameToOID("Rijndael") return null?  
Author Message
tjshi





PostPosted: .NET Base Class Library, CryptoConfig.MapNameToOID("Rijndael") return null? Top

I am trying to derive a key for rijndaelmanaged instance, but get a CryptographicException saying "oid is unknown" when calling CryptoDeriveKey. Further checking shows that CryptoConfig.MapNameToOID("Rijndael") returns null. I am doing anything wrong My code is as follows. Thanks a lot.

RijndaelManaged rij = new RijndaelManaged();

rij.IV = symmetricIV;

PasswordDeriveBytes pdb = new PasswordDeriveBytes(symmetricKey, null);

rij.Key = pdb.CryptDeriveKey("Rijndael", "MD5", 192, rij.IV);



.NET Development4