GetBytes Method
See Also 
SourceCode.Security.Cryptography Namespace > HKDF Class : GetBytes Method



countBytes

Glossary Item Box

When overridden in a derived class, returns pseudo-random key bytes.

Syntax

Visual Basic (Declaration) 
Public Overrides NotOverridable Function GetBytes( _
   ByVal countBytes As Integer _
) As Byte()
Visual Basic (Usage)Copy Code
Dim instance As HKDF
Dim countBytes As Integer
Dim value() As Byte
 
value = instance.GetBytes(countBytes)
C# 
public override byte[] GetBytes( 
   int countBytes
)
C++/CLI 
public:
array<byte>^ GetBytes( 
   int countBytes
) override 

Parameters

countBytes

Return Value

A byte array filled with pseudo-random key bytes.

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