[Pkg-javascript-commits] [node-cipher-base] 09/18: Update api-methods.

Bastien Roucariès rouca at moszumanska.debian.org
Thu Apr 20 19:25:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-cipher-base.

commit c4a7156c7beedb524ce5005374d2fd1327fa3ca4
Author: Zhulduz Zhankenova <zhulduz.zhankenova at crystalnix.com>
Date:   Wed Oct 21 16:21:01 2015 +0600

    Update api-methods.
---
 index.js | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 58c9426..33e9e1e 100644
--- a/index.js
+++ b/index.js
@@ -30,9 +30,17 @@ CipherBase.prototype.update = function (data, inputEnc, outputEnc) {
 
 CipherBase.prototype.setAutoPadding = function () {}
 
-CipherBase.prototype.getAuthTag = function () {}
+CipherBase.prototype.getAuthTag = function () {
+  throw new Error('Subclasses should implement this')
+}
+
+CipherBase.prototype.setAuthTag = function () {
+  throw new Error('Subclasses should implement this')
+}
 
-CipherBase.prototype.setAAD = function () {}
+CipherBase.prototype.setAAD = function () {
+  throw new Error('Subclasses should implement this')
+}
 
 CipherBase.prototype._transform = function (data, _, next) {
   var err

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cipher-base.git



More information about the Pkg-javascript-commits mailing list