Skip to content

Commit c4a7156

Browse files
committed
Update api-methods.
1 parent 208b338 commit c4a7156

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,17 @@ CipherBase.prototype.update = function (data, inputEnc, outputEnc) {
3030

3131
CipherBase.prototype.setAutoPadding = function () {}
3232

33-
CipherBase.prototype.getAuthTag = function () {}
33+
CipherBase.prototype.getAuthTag = function () {
34+
throw new Error('Subclasses should implement this')
35+
}
36+
37+
CipherBase.prototype.setAuthTag = function () {
38+
throw new Error('Subclasses should implement this')
39+
}
3440

35-
CipherBase.prototype.setAAD = function () {}
41+
CipherBase.prototype.setAAD = function () {
42+
throw new Error('Subclasses should implement this')
43+
}
3644

3745
CipherBase.prototype._transform = function (data, _, next) {
3846
var err

0 commit comments

Comments
 (0)