Module: kamailio Branch: master Commit: 44c6a7cc9125f28de4c580b78c9a8185e3583a7c URL: https://github.com/kamailio/kamailio/commit/44c6a7cc9125f28de4c580b78c9a8185e3583a7c
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-07-08T09:45:13+02:00 gcrypt: docs for gcrypt_hmac_sha512() --- Modified: src/modules/gcrypt/doc/gcrypt_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/44c6a7cc9125f28de4c580b78c9a8185e3583a7c.diff Patch: https://github.com/kamailio/kamailio/commit/44c6a7cc9125f28de4c580b78c9a8185e3583a7c.patch --- diff --git a/src/modules/gcrypt/doc/gcrypt_admin.xml b/src/modules/gcrypt/doc/gcrypt_admin.xml index 2c71f0cef9c..a95b5ce7b6c 100644 --- a/src/modules/gcrypt/doc/gcrypt_admin.xml +++ b/src/modules/gcrypt/doc/gcrypt_admin.xml @@ -192,6 +192,29 @@ gcrypt_aes_decrypt("$var(encrypted)", "my-secret-key", "$var(text)"); ... gcrypt_hmac_sha256("$var(text)", "my-secret-key", "$var(hmac)"); ... +</programlisting> + </example> + </section> + + <section id="gcrypt.f.gcrypt_hmac_sha512"> + <title> + <function moreinfo="none">gcrypt_hmac_sha512(text, key, res)</function> + </title> + <para> + Computes the HMAC-SHA512 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_sha512</function> usage</title> + <programlisting format="linespecific"> +... +gcrypt_hmac_sha512("$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!
