2011-11-24 37 views
0

如何使用Windows Cryptographic API在C++中翻譯此C#?我在這個領域的新手,該API看起來很複雜......提前這個代碼C#如何使用Windows Cryptorgraphic API在C++中轉換?

Rijndael aes = Rijndael.Create(); 
aes.Padding = PaddingMode.None; 
MemoryStream ms = new MemoryStream(cryptedText); 
byte[] decryptedText = new byte[0x10]; 

using (CryptoStream decrypt = new CryptoStream(ms, aes.CreateDecryptor(decryptKey, new byte[0x10]), CryptoStreamMode.Read)) 
{ 
    decrypt.Read(decryptedText, 0, 0x10); 
} 

謝謝...

回答