Table of Contents

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

HmacOwnedHandle

Methods

Copy()

[Version("2.30")]
public Hmac Copy()

Returns

Hmac

Equals(Hmac?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Hmac? other)

Parameters

other Hmac

An object to compare with this object.

Returns

bool

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

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.

GetDigest(Span<byte>, out nuint)

[Version("2.30")]
public void GetDigest(Span<byte> buffer, out nuint digestLen)

Parameters

buffer Span<byte>
digestLen nuint

GetGType()

public static Type GetGType()

Returns

Type

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

string

New(ChecksumType, Span<byte>)

[Version("2.30")]
public static Hmac? New(ChecksumType digestType, Span<byte> key)

Parameters

digestType ChecksumType
key Span<byte>

Returns

Hmac

Ref()

[Version("2.30")]
public Hmac Ref()

Returns

Hmac

Unref()

[Version("2.30")]
public void Unref()

Update(Span<byte>)

[Version("2.30")]
public void Update(Span<byte> data)

Parameters

data Span<byte>