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 @@ -313,6 +313,19 @@ Once the `cipher.final()` method has been called, the `Cipher` object can no
313
313
longer be used to encrypt data. Attempts to call ` cipher.final() ` more than
314
314
once will result in an error being thrown.
315
315
316
+ ### ` cipher.getAuthTag() `
317
+ <!-- YAML
318
+ added: v1.0.0
319
+ -->
320
+
321
+ * Returns: {Buffer} When using an authenticated encryption mode (` GCM ` , ` CCM `
322
+ and ` OCB ` are currently supported), the ` cipher.getAuthTag() ` method returns a
323
+ [ ` Buffer ` ] [ ] containing the _ authentication tag_ that has been computed from
324
+ the given data.
325
+
326
+ The ` cipher.getAuthTag() ` method should only be called after encryption has
327
+ been completed using the [ ` cipher.final() ` ] [ ] method.
328
+
316
329
### ` cipher.setAAD(buffer[, options]) `
317
330
<!-- YAML
318
331
added: v1.0.0
@@ -334,19 +347,6 @@ length of the plaintext in bytes. See [CCM mode][].
334
347
335
348
The ` cipher.setAAD() ` method must be called before [ ` cipher.update() ` ] [ ] .
336
349
337
- ### ` cipher.getAuthTag() `
338
- <!-- YAML
339
- added: v1.0.0
340
- -->
341
-
342
- * Returns: {Buffer} When using an authenticated encryption mode (` GCM ` , ` CCM `
343
- and ` OCB ` are currently supported), the ` cipher.getAuthTag() ` method returns a
344
- [ ` Buffer ` ] [ ] containing the _ authentication tag_ that has been computed from
345
- the given data.
346
-
347
- The ` cipher.getAuthTag() ` method should only be called after encryption has
348
- been completed using the [ ` cipher.final() ` ] [ ] method.
349
-
350
350
### ` cipher.setAutoPadding([autoPadding]) `
351
351
<!-- YAML
352
352
added: v0.7.1
You can’t perform that action at this time.
0 commit comments