SecretEncryptionUtils..::..GenerateNewKeyPairFromSeed Method

Generates a new key pair from the given 32-byte secret seed (which should be generated with a CSPRNG) and returns it as object. The returned keys can be used for signing and key agreement.

Namespace:  SecretNET.Common
Assembly:  SecretNET (in SecretNET.dll)

Syntax


public static ValueTuple<byte[], byte[]> GenerateNewKeyPairFromSeed(
	byte[] key
)

Parameters

key
Type: array<Byte>[]()[][]
The key.

Return Value

System.ValueTuple<System.Byte[], System.Byte[]>.

Exceptions


ExceptionCondition
[System.ArgumentNullException]key
[System.ArgumentException]