cipher-base
Advanced tools
Comparing version 1.0.1 to 1.0.2
15
index.js
@@ -30,2 +30,17 @@ var Transform = require('stream').Transform | ||
} | ||
CipherBase.prototype.setAutoPadding = function () {} | ||
CipherBase.prototype.getAuthTag = function () { | ||
throw new Error('trying to get auth tag in unsupported state') | ||
} | ||
CipherBase.prototype.setAuthTag = function () { | ||
throw new Error('trying to set auth tag in unsupported state') | ||
} | ||
CipherBase.prototype.setAAD = function () { | ||
throw new Error('trying to set aad in unsupported state') | ||
} | ||
CipherBase.prototype._transform = function (data, _, next) { | ||
@@ -32,0 +47,0 @@ var err |
{ | ||
"name": "cipher-base", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "abstract base class for crypto-streams", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
cipher-base | ||
=== | ||
[![Build Status](https://travis-ci.org/crypto-browserify/cipher-base.svg)](https://travis-ci.org/crypto-browserify/cipher-base) | ||
Abstract base class to inherit from if you want to create streams implementing | ||
the same api as node crypto streams. | ||
Requires you to implement 2 methods `_final` and `_update`. `_final` takes a | ||
Requires you to implement 2 methods `_final` and `_update`. `_update` takes a | ||
buffer and should return a buffer, `_final` takes no arguments and should return | ||
@@ -9,0 +11,0 @@ a buffer. |
6643
6
186
18