Table of Contents

Class SHA512AuthenticationProvider

Namespace
Lextm.SharpSnmpLib.Security
Assembly
SharpSnmpLib.dll

Authentication provider using SHA-512.

public sealed class SHA512AuthenticationProvider : IAuthenticationProvider
Inheritance
SHA512AuthenticationProvider
Implements
Inherited Members

Remarks

Constructors

SHA512AuthenticationProvider(OctetString)

Initializes a new instance of the SHA512AuthenticationProvider class.

public SHA512AuthenticationProvider(OctetString phrase)

Parameters

phrase OctetString

The phrase.

Properties

CleanDigest

Gets the clean digest.

public OctetString CleanDigest { get; }

Property Value

OctetString

The clean digest.

DigestLength

Length of the digest.

public int DigestLength { get; }

Property Value

int

Methods

ComputeHash(VersionCode, ISegment, SecurityParameters, ISnmpData, IPrivacyProvider, byte[]?)

Computes the hash.

public OctetString ComputeHash(VersionCode version, ISegment header, SecurityParameters parameters, ISnmpData data, IPrivacyProvider privacy, byte[]? length)

Parameters

version VersionCode

The version.

header ISegment

The header.

parameters SecurityParameters

The parameters.

data ISnmpData

The scope bytes.

privacy IPrivacyProvider

The privacy provider.

length byte[]

The length bytes.

Returns

OctetString

PasswordToKey(byte[], byte[])

Passwords to key.

public byte[] PasswordToKey(byte[] password, byte[] engineId)

Parameters

password byte[]

The user password.

engineId byte[]

The engine ID.

Returns

byte[]

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.