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
algorithmSignatureAndHashAlgorithmsignaturebyte[]
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
Exceptions
Parse(TlsContext, Stream)
Parse a DigitallySigned from a Stream.
public static DigitallySigned Parse(TlsContext context, Stream input)
Parameters
contextTlsContextthe TlsContext of the current connection.
inputStreamthe Stream to parse from.
Returns
- DigitallySigned
a DigitallySigned object.