anvilresearch / webcrypto

W3C Web Cryptography API for Node.js
MIT License
82 stars 14 forks source link

Implement AES-GCM algos #6

Closed dmitrizagidulin closed 7 years ago

dmitrizagidulin commented 7 years ago

User feature request, implement the various AES-GCM encrypt/decrypt methods.

Fortunately, these are available in node crypto. Need to be able to:

const crypto = require('crypto')

const GCM = 'id-aes128-GCM'

const cipher = crypto.createCipheriv(GCM, sendkey, sendiv)
const decipher = crypto.createDecipheriv(GCM, recvkey, recviv)

Relevant section in WebCrypto: https://www.w3.org/TR/WebCryptoAPI/#aes-gcm

thelunararmy commented 7 years ago

Supported as of 610967cc07ee4bfdbe441337e6b531e3c7944773