Hello,
thanks for the interesting module addition.
Just a quick note, as maybe developers are not aware of it, there are AES ECB and CBC cryptographic functions also available in the core:
/kamailio/src/core/crypto$ egrep "ecb_|cbc_" rijndael.h void aes_ecb_encrypt(rijndael_ctx *ctx, u_int8_t *data, unsigned len); void aes_ecb_decrypt(rijndael_ctx *ctx, u_int8_t *data, unsigned len);
There is also SHA256, SHA384, SHA512 and MD5 available, in case people prefer to don't use OpenSSL or another library for this functionality.
Cheers,
Henning
-----Original Message----- From: Daniel-Constantin Mierla via sr-dev sr-dev@lists.kamailio.org Sent: Montag, 8. Januar 2024 20:22 To: sr-dev@lists.kamailio.org Cc: Daniel-Constantin Mierla miconda@gmail.com Subject: [sr-dev] git:master:52e82aa7: gcrypt: new module for crypto functions
Module: kamailio Branch: master Commit: 52e82aa79febcdc7aa422756e250d402b61dfe14 URL: https://github.com/kamailio/kamailio/commit/52e82aa79febcdc7aa422756 e250d402b61dfe14
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2024-01-08T20:21:02+01:00
gcrypt: new module for crypto functions
- uses the GNU libgcrypt library
- implemented AES256 ECB encrypt/decrypt functions
Added: src/modules/gcrypt/Makefile Added: src/modules/gcrypt/README Added: src/modules/gcrypt/doc/Makefile Added: src/modules/gcrypt/doc/gcrypt.xml Added: src/modules/gcrypt/doc/gcrypt_admin.xml Added: src/modules/gcrypt/gcrypt_mod.c
Diff: https://github.com/kamailio/kamailio/commit/52e82aa79febcdc7aa422756 e250d402b61dfe14.diff Patch: https://github.com/kamailio/kamailio/commit/52e82aa79febcdc7aa422756 e250d402b61dfe14.patch
Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr- dev-leave@lists.kamailio.org