saju / misc Goto Github PK
View Code? Open in Web Editor NEWconfig, nifty code etc etc
config, nifty code etc etc
Hello! And THANKS for your work with this. I just implemented this on my server and it works 100% perfect! Thanks!!
I'm just having some doubts now about the two variables "en, de" of type "EVP_CIPHER_CTX".
My server runs a thread connection pool and it has to execute a lot of encryptions and decryptions.
Can I use the same variables "en, de" as global variables in concurrent threads that are constantly encrypting and decrypting?
Or should I create and configure a new "en" and "de" for each operation?
Thankss!
Hi Saju,
how can i create the KEY and the IV instead lets the function creates them automatically?
Greetings
Andrea
pressing gcc -Wall openssl_aes.c -lcrypto
it showed the following error:
openssl_aes.c: In function ‘aes_encrypt’: openssl_aes.c:49:22: error: ‘AES_BLOCK_SIZE’ undeclared (first use in this function) int c_len = *len + AES_BLOCK_SIZE, f_len = 0; ^~~~~~~~~~~~~~ openssl_aes.c:49:22: note: each undeclared identifier is reported only once for each function it appears in openssl_aes.c: In function ‘main’: openssl_aes.c:87:18: error: storage size of ‘en’ isn’t known EVP_CIPHER_CTX en, de; ^~ openssl_aes.c:87:22: error: storage size of ‘de’ isn’t known EVP_CIPHER_CTX en, de; ^~ openssl_aes.c:87:22: warning: unused variable ‘de’ [-Wunused-variable] openssl_aes.c:87:18: warning: unused variable ‘en’ [-Wunused-variable] EVP_CIPHER_CTX en, de;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.