Class Hmac
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Hmac : BoxedRecord, IEquatable<Hmac>
- Inheritance
-
Hmac
- Implements
- Inherited Members
Constructors
Hmac(HmacOwnedHandle)
public Hmac(HmacOwnedHandle handle)
Parameters
handle
HmacOwnedHandle
Properties
Handle
public HmacOwnedHandle Handle { get; }
Property Value
Methods
Copy()
[Version("2.30")]
public Hmac Copy()
Returns
Equals(Hmac?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Hmac? other)
Parameters
other
HmacAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetDigest(Span<byte>, out nuint)
[Version("2.30")]
public void GetDigest(Span<byte> buffer, out nuint digestLen)
Parameters
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetString()
[Version("2.30")]
public string GetString()
Returns
New(ChecksumType, Span<byte>)
[Version("2.30")]
public static Hmac? New(ChecksumType digestType, Span<byte> key)
Parameters
digestType
ChecksumTypekey
Span<byte>
Returns
Ref()
[Version("2.30")]
public Hmac Ref()
Returns
Unref()
[Version("2.30")]
public void Unref()
Update(Span<byte>)
[Version("2.30")]
public void Update(Span<byte> data)