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 and juanarbol committed Apr 6, 2022
1 parent 10d638a commit e763e57
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 @@ -5571,12 +5571,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 e763e57

Please sign in to comment.