3 ms·
Could someone please explain to me what this code is doing in the Ruby tree in the first place? My uses of OpenSSL in straight C don't involve performing this
by nknight 15y ago
Could someone please explain to me what this code is doing in the Ruby tree in the first place?
My uses of OpenSSL in straight C don't involve performing this kind of bit twiddling, or really any bit twiddling, calculation, or manipulation at all. That's kind of the point of using OpenSSL.
- jtdowney 15y agoSince the OpenSSL::PKey::RSA.generate method lets you generate RSA keys with a different exponent there is some manipulation needed between the ruby side and OpenSSL. From my understanding the code was part of a refactor to release the global interpreter lock, if possible, while generating RSA keys.