docs: Move the GHmac SECTION

Move it to the struct docs.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-11-14 15:43:41 +00:00
parent 4ef365e5d0
commit 7d5b6e1a85
2 changed files with 6 additions and 12 deletions

View File

@ -37,9 +37,7 @@
/**
* SECTION:hmac
* @title: Secure HMAC Digests
* @short_description: computes the HMAC for data
* GHmac:
*
* HMACs should be used when producing a cookie or hash based on data
* and a key. Simple mechanisms for using SHA1 and other algorithms to
@ -53,6 +51,11 @@
*
* Support for HMAC Digests has been added in GLib 2.30, and support for SHA-512
* in GLib 2.42. Support for SHA-384 was added in GLib 2.52.
*
* To create a new `GHmac`, use [ctor@GLib.Hmac.new]. To free a `GHmac`, use
* [method@GLib.Hmac.unref].
*
* Since: 2.30
*/
struct _GHmac

View File

@ -30,15 +30,6 @@
G_BEGIN_DECLS
/**
* GHmac:
*
* An opaque structure representing a HMAC operation.
* To create a new GHmac, use g_hmac_new(). To free
* a GHmac, use g_hmac_unref().
*
* Since: 2.30
*/
typedef struct _GHmac GHmac;
GLIB_AVAILABLE_IN_2_30