crypto: support GCM authenticated encryption mode.
authorIngmar Runge <ingmar@irsoft.de>
Tue, 19 Nov 2013 21:38:15 +0000 (22:38 +0100)
committerFedor Indutny <fedor.indutny@gmail.com>
Sat, 7 Dec 2013 20:00:02 +0000 (00:00 +0400)
commite0d31ea2dbdc33dda0f295ceda07b7fc1de4e09c
treecf81c1a7d2e288f777507535aee375554762ad19
parentf9f9239fa2f1c33e17ed3b0e830099f64a70bd37
crypto: support GCM authenticated encryption mode.

This adds two new member functions getAuthTag and setAuthTag that
are useful for AES-GCM encryption modes. Use getAuthTag after
Cipheriv.final, transmit the tag along with the data and use
Decipheriv.setAuthTag to have the encrypted data verified.
doc/api/crypto.markdown
lib/crypto.js
src/node_crypto.cc
src/node_crypto.h
test/simple/test-crypto-authenticated.js [new file with mode: 0644]