Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function Encrypt( _ ByVal dataToEncrypt As ArraySegment(Of Byte), _ ByVal encryptingCertificate As X509Certificate2, _ ByVal useOaep As Boolean, _ ByVal outputBuffer As ArraySegment(Of Byte) _ ) As ArraySegment(Of Byte) |
C# | |
---|---|
public static ArraySegment<byte> Encrypt( ArraySegment<byte> dataToEncrypt, X509Certificate2 encryptingCertificate, bool useOaep, ArraySegment<byte> outputBuffer ) |
Parameters
- dataToEncrypt
- encryptingCertificate
- useOaep
- outputBuffer
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family