Skip to content
Browse files

Add reference to OpenSSL source

  • Loading branch information...
1 parent 59a828d commit b65bc769cfd9197ec7ed5ec94ac301b77a578303 @ept ept committed Aug 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 js/private_key.js
View
1 js/private_key.js
@@ -33,6 +33,7 @@ octokey.privateKey = function (raw_private_key) {
decrypt_key = function (passphrase) {
// The following algorithm for deriving the key is hard-coded in OpenSSL
+ // in EVP_BytesToKey (crypto/evp/evp_key.c) and PEM_do_header (crypto/pem/pem_lib.c)
var key = new forge.util.ByteBuffer(), digest = '';
while (key.length() < cipher.key_length) {
var md = forge.md.md5.create();

0 comments on commit b65bc76

Please sign in to comment.
Something went wrong with that request. Please try again.