[SR-Users] Re: Crypto module AES algorithm details

2023-10-16 Thread Henning Westerholt via sr-users
Hello, if you can suggest changes to the 3rd party library that is used to encrypt the data, it should work. Just have a look to the source code how the Kamailio side its doing it. It might be just a different mode that its used from the library, for example. Cheers, Henning -- Henning Weste

[SR-Users] Re: Crypto module AES algorithm details

2023-10-06 Thread Jayesh Nambiar via sr-users
Hi Henning, Thanks for your responses. The exact use case is as follows: - In a custom SIP header, I'll have the number that is supposed to be dialed out in AES encrypted format - I will have to decrypt it using the shared key and IV that was used to encrypt this phone number on Kamailio - Once dec

[SR-Users] Re: Crypto module AES algorithm details

2023-10-05 Thread Henning Westerholt via sr-users
(Please keep the list in CC) Hello, The web tools might use another logic internally. I had some success with a java library use case and also with PostgreSQL, I think. A usual use-case is to have an encrypted password value in a DB, for data at rest encryption. The password is encrypted from

[SR-Users] Re: Crypto module AES algorithm details

2023-10-04 Thread Henning Westerholt via sr-users
Hello Jayesh, AFAIK its uses AES 256 with CBC mode. The IV is generated from OpenSSL, e.g. https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html For newer versions I have added the init_vector functionality to enable interoperability with other crypto functions, e.g. some databases, java