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
pub doesn't work. Only priv and bob.publicKey but I know that priv should work because in docs: Because RSA public keys can be derived from private keys, a private key may be passed instead of a public key. I really want to know why pub isn't working.
Activity
bnoordhuis commentedon Nov 4, 2019
@tniessen Is that an oversight? The
'private'here looks wrong to me:node/lib/internal/crypto/cipher.js
Lines 68 to 69 in c80771d
Since that means
preparePrivateKey()is called, notpreparePublicOrPrivateKey().crypto: fix key requirements in asymmetric cipher
tniessen commentedon Nov 4, 2019
@bnoordhuis I think so, yes. I am surprised it went unnoticed for so long, but it is probably a rarely used function.
crypto: fix key requirements in asymmetric cipher
crypto: fix key requirements in asymmetric cipher
crypto: fix key requirements in asymmetric cipher
sda3211 commentedon Jul 14, 2020
sda3211 commentedon Jul 14, 2020