Fix crypto hmac to accept binary keys + add test cases from rfc 2202 and 4231
authorStefan Bühler <stbuehler@web.de>
Sun, 8 May 2011 12:17:21 +0000 (14:17 +0200)
committerkoichik <koichik@improvement.jp>
Sun, 24 Jul 2011 10:48:18 +0000 (19:48 +0900)
commitdb993956d61dd1cff86787cf7b8d1661d3d23e30
tree42e9227ed75d647d729268c223cb9670405c4176
parentaa0308d6182b2f7a2508373770952eefd2fdb0ac
Fix crypto hmac to accept binary keys + add test cases from rfc 2202 and 4231

Fixes #324.
Fixes #1027.

Instead of converting buffers to strings and back again to char array
directly use the buffer data in hmac_init (same as in hmac_update).
src/node_crypto.cc
test/simple/test-crypto.js