Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a basic function to test the speed of the AES-256-CBC mode of the Node.js built-in crypto functions. These functions use OpenSSL, so they should support AES-NI, but when I correctly enable AES-NI and do a command-line test of OpenSSL the encryption speed is ~350MB/s on OpenSSL and only ~100MB/s on Node.js Crypto.

I used this answer to enable OpenSSL AES-NI in the command line and ran it as follows:

openssl speed -evp aes-256-cbc

My question is, how do I make the speed of the Node.js crypto functions for AES match that of OpenSSL run in the command line? I suspect the reason is failure to use AES-NI

share|improve this question

closed as off-topic by pg1989, e-sushi, rath, Gilles, ir01 Oct 12 '13 at 3:28

  • This question does not appear to be about cryptography within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

I suspect part of the reason is that there's an additional layer of abstraction between Node.js and the native OpenSSL code. However, this is purely a software question and is not really on-topic for this site. – pg1989 Oct 11 '13 at 0:24
Yes, I figured that much, but I was hoping someone might know how to activate or fix it. Also, how do I know what is on topic for this site? It would seem people ask similar questions fairly often – Grannun Oct 11 '13 at 1:02
Under 'help' there's an answer to the question "What questions can I ask here?". – pg1989 Oct 11 '13 at 1:19

Browse other questions tagged or ask your own question.