You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openssl list-public-key-algorithms on crypto docs聽#9005
According with docsopenssl list-public-key-algorithms shows the available signing algorithms, but isn't very helpfull, in fact I'm still unable to figure out which parameter to pass to crypto.createVerify(algorithm) 馃槩
By the way, on openssl 1.1.0b does not exists that command:
I see openssl list-public-key-algorithms mentioned for crypto.createSign() and crypto.createVerify() but I have no idea why. What you want to use is one of the digests from crypto.getHashes(), like RSA-SHA256.
Looks like the documentation has basically always been wrong -- I traced it back to commit afce4c3 from May 2010, released in v0.1.94! In fairness, we didn't have crypto.getHashes() back then. :-)
Activity
Fishrock123 commentedon Oct 10, 2016
cc @nodejs/crypto
mscdex commentedon Oct 10, 2016
Perhaps we should just add a
crypto.getPubKeyAlgos()or similar.bnoordhuis commentedon Oct 10, 2016
I see
openssl list-public-key-algorithmsmentioned forcrypto.createSign()andcrypto.createVerify()but I have no idea why. What you want to use is one of the digests fromcrypto.getHashes(), like RSA-SHA256.indutny commentedon Oct 10, 2016
Yeah, it is basically contained in
crypto.getHashes()as @bnoordhuis pointed out.bnoordhuis commentedon Oct 10, 2016
Looks like the documentation has basically always been wrong -- I traced it back to commit afce4c3 from May 2010, released in v0.1.94! In fairness, we didn't have
crypto.getHashes()back then. :-)indutny commentedon Oct 10, 2016
Nor did anyone know how these things work ;)
gibfahn commentedon Oct 10, 2016
Sounds like we're somewhat overdue a documentation update then?
bnoordhuis commentedon Oct 10, 2016
Yep.
sstern6 commentedon Oct 11, 2016
Would like to make a PR for this, from what I understand from the thread I need to:
openssl list-public-key-algorithmsexplanation fromcrypto.createSign()andcrypto.createVerify()sections in the docs.crypto.getHashes()to be more clear about listing supported hash algorithms?Can have a PR open for this shortly!
cc @bnoordhuis
Thanks!
bnoordhuis commentedon Oct 11, 2016
@sstern6 Correct. I'd also cross-reference
crypto.getHashes()fromcrypto.createSign()andcrypto.createVerify().sstern6 commentedon Oct 11, 2016
@bnoordhuis ON IT! Will have a PR open today! Thank you
bnoordhuis commentedon Oct 21, 2016
Closing, fixed in 3d294cf.