CryptoSys API Library Manual

Rng.KeyBytes Method (Int32, Byte[])

Generates a random key with user-supplied entropy

Syntax

[C#]
public static byte[] KeyBytes(
	int numBytes,
	byte[] arrSeed
)
[VB.NET]
Public Shared Function KeyBytes ( _
	numBytes As Integer, _
	arrSeed As Byte() _
) As Byte()

Parameters

numBytes
Required number of random bytes
arrSeed
User-supplied entropy in byte format

Return Value

Array of random bytes

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: RNG_KeyBytes

[Contents] [Index]

[HOME]   [NEXT: Rng.KeyBytes Method (Int32, String)...]

Copyright © 2001-11 D.I. Management Services Pty Ltd. All rights reserved.