Giter VIP home page Giter VIP logo

misc's People

Contributors

keineahnung2345 avatar krabby127 avatar saju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

misc's Issues

Concurrency issues?

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!

Key and IV

Hi Saju,
how can i create the KEY and the IV instead lets the function creates them automatically?

Greetings

Andrea

Code Not Running

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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.