Skip to content

Commit

Permalink
doc: unify import order in CCM example
Browse files Browse the repository at this point in the history
Refs: #39043

PR-URL: #42394
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
tniessen authored Mar 21, 2022
1 parent 4e2fefc commit 298cc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -5652,12 +5652,12 @@ console.log(receivedPlaintext);
```

```cjs
const { Buffer } = require('buffer');
const {
createCipheriv,
createDecipheriv,
randomBytes,
} = require('crypto');
const { Buffer } = require('buffer');

const key = 'keykeykeykeykeykeykeykey';
const nonce = randomBytes(12);
Expand Down

0 comments on commit 298cc82

Please sign in to comment.