PrivacyProviderExtensionVerifyHash Method |
Verifies the hash.
Namespace: Lextm.SharpSnmpLib.SecurityAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static bool VerifyHash(
this IPrivacyProvider privacy,
VersionCode version,
Header header,
SecurityParameters parameters,
ISnmpData scopeBytes,
byte[]? length
)
<ExtensionAttribute>
Public Shared Function VerifyHash (
privacy As IPrivacyProvider,
version As VersionCode,
header As Header,
parameters As SecurityParameters,
scopeBytes As ISnmpData,
length As Byte()
) As Boolean
Dim privacy As IPrivacyProvider
Dim version As VersionCode
Dim header As Header
Dim parameters As SecurityParameters
Dim scopeBytes As ISnmpData
Dim length As Byte()
Dim returnValue As Boolean
returnValue = privacy.VerifyHash(version,
header, parameters, scopeBytes, length)
public:
[ExtensionAttribute]
static bool VerifyHash(
IPrivacyProvider^ privacy,
VersionCode version,
Header^ header,
SecurityParameters^ parameters,
ISnmpData^ scopeBytes,
array<unsigned char>^ length
)
[<ExtensionAttribute>]
static member VerifyHash :
privacy : IPrivacyProvider *
version : VersionCode *
header : Header *
parameters : SecurityParameters *
scopeBytes : ISnmpData *
length : byte[] -> bool
Parameters
- privacy IPrivacyProvider
- The privacy provider.
- version VersionCode
- The version.
- header Header
- The header.
- parameters SecurityParameters
- The parameters.
- scopeBytes ISnmpData
- The scope bytes.
- length Byte
- The length bytes.
Return Value
Boolean
Returns
true if hash matches. Otherwise, returns
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPrivacyProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also