diff options
| author | najeira <najeira@gmail.com> | 2021-09-14 04:47:41 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-04-16 08:45:29 -0700 |
| commit | 2cb9e7f68f90ea9119fd4172fc61630279d79d67 (patch) | |
| tree | 3fc122dbf18b7da6958a7e85a5747b1640691641 /src/debug/dwarf | |
| parent | 5413abc44025f281f2a7ea37b3e0043591dbed3e (diff) | |
| download | go-2cb9e7f68f90ea9119fd4172fc61630279d79d67.tar.xz | |
crypto/cipher: use AEAD.NonceSize to make nonce in the example
The existing example uses hard-coded constant to make nonce buffer.
Using AEAD.NonceSize makes it a more portable and appropriate example.
Fixes: #48372
Change-Id: I7c7a38ed48aff46ca11ef4f5654c778eac13dde6
GitHub-Last-Rev: 03ccbb16df4ca9cbd4a014836aee0f54b2ff3002
GitHub-Pull-Request: golang/go#48373
Reviewed-on: https://go-review.googlesource.com/c/go/+/349603
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Diffstat (limited to 'src/debug/dwarf')
0 files changed, 0 insertions, 0 deletions
