Class SHA384AuthenticationProvider
- Namespace
- Lextm.SharpSnmpLib.Security
- Assembly
- SharpSnmpLib.dll
Authentication provider using SHA-384.
public sealed class SHA384AuthenticationProvider : IAuthenticationProvider
- Inheritance
-
SHA384AuthenticationProvider
- Implements
- Inherited Members
Remarks
Defined in https://tools.ietf.org/html/rfc7630#page-3.
Constructors
SHA384AuthenticationProvider(OctetString)
Initializes a new instance of the SHA384AuthenticationProvider class.
public SHA384AuthenticationProvider(OctetString phrase)
Parameters
phrase
OctetStringThe 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
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
VersionCodeThe version.
header
ISegmentThe header.
parameters
SecurityParametersThe parameters.
data
ISnmpDataThe scope bytes.
privacy
IPrivacyProviderThe privacy provider.
length
byte[]The length bytes.
Returns
PasswordToKey(byte[], byte[])
Passwords to key.
public byte[] PasswordToKey(byte[] password, byte[] engineId)
Parameters
Returns
- byte[]
ToString()
Returns a string that represents this instance.
public override string ToString()