Table of Contents

Class SignatureAndHashAlgorithm

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll

RFC 5246 7.4.1.4.1

public sealed class SignatureAndHashAlgorithm
Inheritance
SignatureAndHashAlgorithm
Inherited Members

Constructors

SignatureAndHashAlgorithm(short, short)

public SignatureAndHashAlgorithm(short hash, short signature)

Parameters

hash short

HashAlgorithm

signature short

SignatureAlgorithm

Fields

ecdsa_brainpoolP256r1tls13_sha256

public static readonly SignatureAndHashAlgorithm ecdsa_brainpoolP256r1tls13_sha256

Field Value

SignatureAndHashAlgorithm

ecdsa_brainpoolP384r1tls13_sha384

public static readonly SignatureAndHashAlgorithm ecdsa_brainpoolP384r1tls13_sha384

Field Value

SignatureAndHashAlgorithm

ecdsa_brainpoolP512r1tls13_sha512

public static readonly SignatureAndHashAlgorithm ecdsa_brainpoolP512r1tls13_sha512

Field Value

SignatureAndHashAlgorithm

ed25519

public static readonly SignatureAndHashAlgorithm ed25519

Field Value

SignatureAndHashAlgorithm

ed448

public static readonly SignatureAndHashAlgorithm ed448

Field Value

SignatureAndHashAlgorithm

gostr34102012_256

public static readonly SignatureAndHashAlgorithm gostr34102012_256

Field Value

SignatureAndHashAlgorithm

gostr34102012_512

public static readonly SignatureAndHashAlgorithm gostr34102012_512

Field Value

SignatureAndHashAlgorithm

rsa_pss_pss_sha256

public static readonly SignatureAndHashAlgorithm rsa_pss_pss_sha256

Field Value

SignatureAndHashAlgorithm

rsa_pss_pss_sha384

public static readonly SignatureAndHashAlgorithm rsa_pss_pss_sha384

Field Value

SignatureAndHashAlgorithm

rsa_pss_pss_sha512

public static readonly SignatureAndHashAlgorithm rsa_pss_pss_sha512

Field Value

SignatureAndHashAlgorithm

rsa_pss_rsae_sha256

public static readonly SignatureAndHashAlgorithm rsa_pss_rsae_sha256

Field Value

SignatureAndHashAlgorithm

rsa_pss_rsae_sha384

public static readonly SignatureAndHashAlgorithm rsa_pss_rsae_sha384

Field Value

SignatureAndHashAlgorithm

rsa_pss_rsae_sha512

public static readonly SignatureAndHashAlgorithm rsa_pss_rsae_sha512

Field Value

SignatureAndHashAlgorithm

Properties

Hash

public short Hash { get; }

Property Value

short

HashAlgorithm

Signature

public short Signature { get; }

Property Value

short

SignatureAlgorithm

Methods

Encode(Stream)

public void Encode(Stream output)

Parameters

output Stream

the Stream to encode to.

Exceptions

IOException

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetInstance(short, short)

public static SignatureAndHashAlgorithm GetInstance(short hashAlgorithm, short signatureAlgorithm)

Parameters

hashAlgorithm short
signatureAlgorithm short

Returns

SignatureAndHashAlgorithm

Parse(Stream)

public static SignatureAndHashAlgorithm Parse(Stream input)

Parameters

input Stream

the Stream to parse from.

Returns

SignatureAndHashAlgorithm

a SignatureAndHashAlgorithm object.

Exceptions

IOException

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.