EncryptThenMac Method
See Also 
SourceCode.Security.Cryptography Namespace > CryptoFactory Class : EncryptThenMac Method



masterKey
plaintext
salt

Glossary Item Box

Syntax

Visual Basic (Declaration)  
<ExtensionAttribute()>
Public Shared Function EncryptThenMac( _
   ByVal masterKey() As Byte, _
   ByVal plaintext() As Byte, _
   Optional ByVal salt() As Byte _
) As Byte()
Visual Basic (Usage) Copy Code
Dim masterKey() As Byte
Dim plaintext() As Byte
Dim salt() As Byte
Dim value() As Byte
 
value = CryptoFactory.EncryptThenMac(masterKey, plaintext, salt)
C#  
[Extension()]
public static byte[] EncryptThenMac( 
   byte[] masterKey,
   byte[] plaintext,
   byte[] salt
)
C++/CLI  
[Extension()]
public:
static array<byte>^ EncryptThenMac( 
   array<byte>^ masterKey,
   array<byte>^ plaintext,
   array<byte>^ salt
) 

Parameters

masterKey
plaintext
salt

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also