Does anyone know if the privKey arg when using crypto.createSign().update(ct).sign(privKey, encoding)<http://nodejs.org/api/crypto.html#crypto_crypto_createsign_algorithm>can be a buffer, hex encoding string etc?
It seems (according to the docs & source) that it requires an ascii PEM ( L#2974 <https://github.com/joyent/node/blob/master/src/node_crypto.cc#L2974>) formatted private key, which eliminates the use of the crypto.DiffieHellman.generateKeys()<http://nodejs.org/api/crypto.html#crypto_diffiehellman_generatekeys_encoding>private key as its only output options are binary, hex or base64. Is this a design decision? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
