Table of Contents

Class DigitallySigned

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll
public sealed class DigitallySigned
Inheritance
DigitallySigned
Inherited Members

Constructors

DigitallySigned(SignatureAndHashAlgorithm, byte[])

public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)

Parameters

algorithm SignatureAndHashAlgorithm
signature byte[]

Properties

Algorithm

public SignatureAndHashAlgorithm Algorithm { get; }

Property Value

SignatureAndHashAlgorithm

a SignatureAndHashAlgorithm (or null before TLS 1.2).

Signature

public byte[] Signature { get; }

Property Value

byte[]

Methods

Encode(Stream)

Encode this DigitallySigned to a Stream.

public void Encode(Stream output)

Parameters

output Stream

the Stream to encode to.

Exceptions

IOException

Parse(TlsContext, Stream)

Parse a DigitallySigned from a Stream.

public static DigitallySigned Parse(TlsContext context, Stream input)

Parameters

context TlsContext

the TlsContext of the current connection.

input Stream

the Stream to parse from.

Returns

DigitallySigned

a DigitallySigned object.

Exceptions

IOException