Encodes a signature to a PKCS #7 form.

Namespace:  Rebex.Security.Cryptography
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Shared Function EncodeSignature ( _
	signature As Byte(), _
	keyAlgorithm As KeyAlgorithm _
) As Byte()
C#
public static byte[] EncodeSignature(
	byte[] signature,
	KeyAlgorithm keyAlgorithm
)

Parameters

signature
Type: array<System..::..Byte>[]()[][]
Signature.
keyAlgorithm
Type: Rebex.Security.Certificates..::..KeyAlgorithm
Key algorithm.

Return Value

Encoded signature.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also