← Volver al índice de módulos

gcrypt

This module provides various cryptography tools for use in Kamailio configuration file using libgcrypt.
🛠️ Utilidades y Varios Kamailio 6.1 6 parámetros 4 funciones

Descripción general

This module provides various cryptography tools for use in Kamailio configuration file using libgcrypt.

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/gcrypt.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/gcrypt

Parámetros de configuración

ParámetroTipoDescripción
init_vector str 3.2. aes_mode (int) 3.3. register_callid (int)
aes_mode int 3.3. register_callid (int)
register_callid int 3.1. init_vector (str)
init_vector str The initialization vector used for the cryptographic operations. This needs to be a string value with 16 bytes lengths.
aes_mode int Set it to 1 in order to do AES CBC encryption mode. By default, it does AES ECB mode.
register_callid int Set it to 1 in order to register a callback to core for generation of callid values for requests generated by Kamailio tm module.

Funciones exportadas

gcrypt_aes_encrypt(text, key, res)

4.2. gcrypt_aes_decrypt(text, key, res)

gcrypt_aes_decrypt(text, key, res)

4.1. gcrypt_aes_encrypt(text, key, res)

gcrypt_aes_encrypt(text, key, res)

Encrypts the text with the key using AES256 ECB encryption algorithm. The result is encoded in base64 format and stored in res. The parameter res must be a read-write variables. The parameters text and key can be static strings or strings with variab

gcrypt_aes_decrypt(text, key, res)

Decrypts the text with the key using AES256 ECB encryption algorithm. The text has to be encoded in base64 format. The parameter res must be a read-write variables. The parameters text and key can be static strings or strings with variables (dynamic

Autores y contribuidores

Daniel-Constantin Mierla <miconda@gmail.com>

Copyright © 2024 asipto.com

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj