File tree 1 file changed +13
-13
lines changed
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,19 @@ Once the `cipher.final()` method has been called, the `Cipher` object can no
282
282
longer be used to encrypt data. Attempts to call ` cipher.final() ` more than
283
283
once will result in an error being thrown.
284
284
285
+ ### ` cipher.getAuthTag() `
286
+ <!-- YAML
287
+ added: v1.0.0
288
+ -->
289
+
290
+ * Returns: {Buffer} When using an authenticated encryption mode (` GCM ` , ` CCM `
291
+ and ` OCB ` are currently supported), the ` cipher.getAuthTag() ` method returns a
292
+ [ ` Buffer ` ] [ ] containing the _ authentication tag_ that has been computed from
293
+ the given data.
294
+
295
+ The ` cipher.getAuthTag() ` method should only be called after encryption has
296
+ been completed using the [ ` cipher.final() ` ] [ ] method.
297
+
285
298
### ` cipher.setAAD(buffer[, options]) `
286
299
<!-- YAML
287
300
added: v1.0.0
@@ -302,19 +315,6 @@ of the plaintext in bytes. See [CCM mode][].
302
315
303
316
The ` cipher.setAAD() ` method must be called before [ ` cipher.update() ` ] [ ] .
304
317
305
- ### ` cipher.getAuthTag() `
306
- <!-- YAML
307
- added: v1.0.0
308
- -->
309
-
310
- * Returns: {Buffer} When using an authenticated encryption mode (` GCM ` , ` CCM `
311
- and ` OCB ` are currently supported), the ` cipher.getAuthTag() ` method returns a
312
- [ ` Buffer ` ] [ ] containing the _ authentication tag_ that has been computed from
313
- the given data.
314
-
315
- The ` cipher.getAuthTag() ` method should only be called after encryption has
316
- been completed using the [ ` cipher.final() ` ] [ ] method.
317
-
318
318
### ` cipher.setAutoPadding([autoPadding]) `
319
319
<!-- YAML
320
320
added: v0.7.1
You can’t perform that action at this time.
0 commit comments