joyent/node — pull request #5483 by bnoordhuis (2013-05-15 15:57:14+00:00)
Title: crypto: fix default encoding regression

The default encoding is 'buffer'. When the input is a string, treat it
as 'binary'. Fixes the following assertion:

node: ../src/string_bytes.cc:309: static size_t
node::StringBytes::StorageSize(v8::Handle, node::encoding):
Assertion `0 && "buffer encoding specified but string provided"'
failed.

Fixes #5482.

Suggested reviewer: @isaacs @piscisaureus