@@ -59,24 +59,24 @@ function Hash(algorithm, options) {
59
59
60
60
util . inherits ( Hash , LazyTransform ) ;
61
61
62
- Hash . prototype . _transform = function ( chunk , encoding , callback ) {
62
+ Hash . prototype . _transform = function _transform ( chunk , encoding , callback ) {
63
63
this . _handle . update ( chunk , encoding ) ;
64
64
callback ( ) ;
65
65
} ;
66
66
67
- Hash . prototype . _flush = function ( callback ) {
67
+ Hash . prototype . _flush = function _flush ( callback ) {
68
68
this . push ( this . _handle . digest ( ) ) ;
69
69
callback ( ) ;
70
70
} ;
71
71
72
- Hash . prototype . update = function ( data , encoding ) {
72
+ Hash . prototype . update = function update ( data , encoding ) {
73
73
encoding = encoding || exports . DEFAULT_ENCODING ;
74
74
this . _handle . update ( data , encoding ) ;
75
75
return this ;
76
76
} ;
77
77
78
78
79
- Hash . prototype . digest = function ( outputEncoding ) {
79
+ Hash . prototype . digest = function digest ( outputEncoding ) {
80
80
outputEncoding = outputEncoding || exports . DEFAULT_ENCODING ;
81
81
return this . _handle . digest ( outputEncoding ) ;
82
82
} ;
@@ -122,12 +122,12 @@ function Cipher(cipher, password, options) {
122
122
123
123
util . inherits ( Cipher , LazyTransform ) ;
124
124
125
- Cipher . prototype . _transform = function ( chunk , encoding , callback ) {
125
+ Cipher . prototype . _transform = function _transform ( chunk , encoding , callback ) {
126
126
this . push ( this . _handle . update ( chunk , encoding ) ) ;
127
127
callback ( ) ;
128
128
} ;
129
129
130
- Cipher . prototype . _flush = function ( callback ) {
130
+ Cipher . prototype . _flush = function _flush ( callback ) {
131
131
try {
132
132
this . push ( this . _handle . final ( ) ) ;
133
133
} catch ( e ) {
@@ -137,7 +137,7 @@ Cipher.prototype._flush = function(callback) {
137
137
callback ( ) ;
138
138
} ;
139
139
140
- Cipher . prototype . update = function ( data , inputEncoding , outputEncoding ) {
140
+ Cipher . prototype . update = function update ( data , inputEncoding , outputEncoding ) {
141
141
inputEncoding = inputEncoding || exports . DEFAULT_ENCODING ;
142
142
outputEncoding = outputEncoding || exports . DEFAULT_ENCODING ;
143
143
@@ -152,7 +152,7 @@ Cipher.prototype.update = function(data, inputEncoding, outputEncoding) {
152
152
} ;
153
153
154
154
155
- Cipher . prototype . final = function ( outputEncoding ) {
155
+ Cipher . prototype . final = function final ( outputEncoding ) {
156
156
outputEncoding = outputEncoding || exports . DEFAULT_ENCODING ;
157
157
var ret = this . _handle . final ( ) ;
158
158
@@ -165,21 +165,21 @@ Cipher.prototype.final = function(outputEncoding) {
165
165
} ;
166
166
167
167
168
- Cipher . prototype . setAutoPadding = function ( ap ) {
168
+ Cipher . prototype . setAutoPadding = function setAutoPadding ( ap ) {
169
169
this . _handle . setAutoPadding ( ap ) ;
170
170
return this ;
171
171
} ;
172
172
173
- Cipher . prototype . getAuthTag = function ( ) {
173
+ Cipher . prototype . getAuthTag = function getAuthTag ( ) {
174
174
return this . _handle . getAuthTag ( ) ;
175
175
} ;
176
176
177
177
178
- Cipher . prototype . setAuthTag = function ( tagbuf ) {
178
+ Cipher . prototype . setAuthTag = function setAuthTag ( tagbuf ) {
179
179
this . _handle . setAuthTag ( tagbuf ) ;
180
180
} ;
181
181
182
- Cipher . prototype . setAAD = function ( aadbuf ) {
182
+ Cipher . prototype . setAAD = function setAAD ( aadbuf ) {
183
183
this . _handle . setAAD ( aadbuf ) ;
184
184
} ;
185
185
@@ -267,14 +267,14 @@ function Sign(algorithm, options) {
267
267
268
268
util . inherits ( Sign , stream . Writable ) ;
269
269
270
- Sign . prototype . _write = function ( chunk , encoding , callback ) {
270
+ Sign . prototype . _write = function _write ( chunk , encoding , callback ) {
271
271
this . _handle . update ( chunk , encoding ) ;
272
272
callback ( ) ;
273
273
} ;
274
274
275
275
Sign . prototype . update = Hash . prototype . update ;
276
276
277
- Sign . prototype . sign = function ( options , encoding ) {
277
+ Sign . prototype . sign = function sign ( options , encoding ) {
278
278
if ( ! options )
279
279
throw new Error ( 'No key provided to sign' ) ;
280
280
@@ -306,7 +306,7 @@ util.inherits(Verify, stream.Writable);
306
306
Verify . prototype . _write = Sign . prototype . _write ;
307
307
Verify . prototype . update = Sign . prototype . update ;
308
308
309
- Verify . prototype . verify = function ( object , signature , sigEncoding ) {
309
+ Verify . prototype . verify = function verify ( object , signature , sigEncoding ) {
310
310
sigEncoding = sigEncoding || exports . DEFAULT_ENCODING ;
311
311
return this . _handle . verify ( toBuf ( object ) , toBuf ( signature , sigEncoding ) ) ;
312
312
} ;
@@ -474,14 +474,14 @@ function dhGetPrivateKey(encoding) {
474
474
}
475
475
476
476
477
- DiffieHellman . prototype . setPublicKey = function ( key , encoding ) {
477
+ DiffieHellman . prototype . setPublicKey = function setPublicKey ( key , encoding ) {
478
478
encoding = encoding || exports . DEFAULT_ENCODING ;
479
479
this . _handle . setPublicKey ( toBuf ( key , encoding ) ) ;
480
480
return this ;
481
481
} ;
482
482
483
483
484
- DiffieHellman . prototype . setPrivateKey = function ( key , encoding ) {
484
+ DiffieHellman . prototype . setPrivateKey = function setPrivateKey ( key , encoding ) {
485
485
encoding = encoding || exports . DEFAULT_ENCODING ;
486
486
this . _handle . setPrivateKey ( toBuf ( key , encoding ) ) ;
487
487
return this ;
@@ -599,19 +599,21 @@ function Certificate() {
599
599
}
600
600
601
601
602
- Certificate . prototype . verifySpkac = function ( object ) {
602
+ Certificate . prototype . verifySpkac = function verifySpkac ( object ) {
603
603
return binding . certVerifySpkac ( object ) ;
604
604
} ;
605
605
606
606
607
- Certificate . prototype . exportPublicKey = function ( object , encoding ) {
608
- return binding . certExportPublicKey ( toBuf ( object , encoding ) ) ;
609
- } ;
607
+ Certificate . prototype . exportPublicKey =
608
+ function exportPublicKey ( object , encoding ) {
609
+ return binding . certExportPublicKey ( toBuf ( object , encoding ) ) ;
610
+ } ;
610
611
611
612
612
- Certificate . prototype . exportChallenge = function ( object , encoding ) {
613
- return binding . certExportChallenge ( toBuf ( object , encoding ) ) ;
614
- } ;
613
+ Certificate . prototype . exportChallenge =
614
+ function exportChallenge ( object , encoding ) {
615
+ return binding . certExportChallenge ( toBuf ( object , encoding ) ) ;
616
+ } ;
615
617
616
618
617
619
exports . setEngine = function setEngine ( id , flags ) {
0 commit comments