diff options
| author | Russ Cox <rsc@golang.org> | 2022-05-11 15:11:29 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-06-27 11:50:31 +0000 |
| commit | 8f9bfa9b7b7739324e73b4f19280caa2011e6ae8 (patch) | |
| tree | cee18d5d2be1301efab639438753bb7c3ea63d23 /src/crypto/internal | |
| parent | 351e0f4083779d8ac91c05afebded42a302a6893 (diff) | |
| download | go-8f9bfa9b7b7739324e73b4f19280caa2011e6ae8.tar.xz | |
crypto/internal/boring: factor Cache into crypto/internal/boring/bcache
Requested by the maintainers of the OpenSSL-based fork of Go+BoringCrypto,
to make maintaining that fork easier.
Change-Id: I770e70ecc12b589034da31edecf59c73b2c6e1dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/407135
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/crypto/internal')
| -rw-r--r-- | src/crypto/internal/boring/bcache/cache.go (renamed from src/crypto/internal/boring/cache.go) | 3 | ||||
| -rw-r--r-- | src/crypto/internal/boring/bcache/cache_test.go (renamed from src/crypto/internal/boring/cache_test.go) | 2 | ||||
| -rw-r--r-- | src/crypto/internal/boring/bcache/stub.s (renamed from src/crypto/internal/boring/stub.s) | 0 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/crypto/internal/boring/cache.go b/src/crypto/internal/boring/bcache/cache.go index 476e47706c..c0b9d7bf2a 100644 --- a/src/crypto/internal/boring/cache.go +++ b/src/crypto/internal/boring/bcache/cache.go @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package boring +// Package bcache implements a GC-friendly cache (see [Cache]) for BoringCrypto. +package bcache import ( "sync/atomic" diff --git a/src/crypto/internal/boring/cache_test.go b/src/crypto/internal/boring/bcache/cache_test.go index f9ccb74f6f..8b2cf3d094 100644 --- a/src/crypto/internal/boring/cache_test.go +++ b/src/crypto/internal/boring/bcache/cache_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package boring +package bcache import ( "fmt" diff --git a/src/crypto/internal/boring/stub.s b/src/crypto/internal/boring/bcache/stub.s index 59f2deeb60..59f2deeb60 100644 --- a/src/crypto/internal/boring/stub.s +++ b/src/crypto/internal/boring/bcache/stub.s |
