Module: kamailio Branch: master Commit: e5325547203f021b96b31b19b3ab3e4c57a41d3d URL: https://github.com/kamailio/kamailio/commit/e5325547203f021b96b31b19b3ab3e4c57a41d3d
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-06-30T09:31:31+02:00 gcrypt: docs for gcrypt_hmac_sha256() --- Modified: src/modules/gcrypt/doc/gcrypt_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/e5325547203f021b96b31b19b3ab3e4c57a41d3d.diff Patch: https://github.com/kamailio/kamailio/commit/e5325547203f021b96b31b19b3ab3e4c57a41d3d.patch --- diff --git a/src/modules/gcrypt/doc/gcrypt_admin.xml b/src/modules/gcrypt/doc/gcrypt_admin.xml index 3fc03d3eabc..2c71f0cef9c 100644 --- a/src/modules/gcrypt/doc/gcrypt_admin.xml +++ b/src/modules/gcrypt/doc/gcrypt_admin.xml @@ -169,6 +169,29 @@ gcrypt_aes_encrypt("$rb", "my-secret-key", "$var(encrypted)"); ... gcrypt_aes_decrypt("$var(encrypted)", "my-secret-key", "$var(text)"); ... +</programlisting> + </example> + </section> + + <section id="gcrypt.f.gcrypt_hmac_sha256"> + <title> + <function moreinfo="none">gcrypt_hmac_sha256(text, key, res)</function> + </title> + <para> + Computes the HMAC-SHA256 of the text using the key and stores the + result encoded in base64url format in res. The parameter res must + be a read-write variable. The parameters text and key can be static + strings or strings with variables (dynamic strings). + </para> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>gcrypt_hmac_sha256</function> usage</title> + <programlisting format="linespecific"> +... +gcrypt_hmac_sha256("$var(text)", "my-secret-key", "$var(hmac)"); +... </programlisting> </example> </section> _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
