diff options
| author | cui fliter <imcusg@gmail.com> | 2022-11-11 19:22:35 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-11-18 17:59:44 +0000 |
| commit | b2faff18ce28edad98303d2c3134dec1331fd7b5 (patch) | |
| tree | 2161dfe37742a6be201f506abf0d4f20533e8d76 /src/crypto | |
| parent | 893964b9727a3dfcadab75c0f6b3c6b683b9bae0 (diff) | |
| download | go-b2faff18ce28edad98303d2c3134dec1331fd7b5.tar.xz | |
all: add missing periods in comments
Change-Id: I69065f8adf101fdb28682c55997f503013a50e29
Reviewed-on: https://go-review.googlesource.com/c/go/+/449757
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joedian Reid <joedian@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/crypto')
| -rw-r--r-- | src/crypto/des/block.go | 6 | ||||
| -rw-r--r-- | src/crypto/internal/boring/boring.go | 2 | ||||
| -rw-r--r-- | src/crypto/x509/internal/macos/corefoundation.go | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/crypto/des/block.go b/src/crypto/des/block.go index c649dee94f..192913094e 100644 --- a/src/crypto/des/block.go +++ b/src/crypto/des/block.go @@ -83,7 +83,7 @@ var feistelBox [8][64]uint32 var feistelBoxOnce sync.Once -// general purpose function to perform DES block permutations +// general purpose function to perform DES block permutations. func permuteBlock(src uint64, permutation []uint8) (block uint64) { for position, n := range permutation { bit := (src >> n) & 1 @@ -209,7 +209,7 @@ func permuteFinalBlock(block uint64) uint64 { } // creates 16 28-bit blocks rotated according -// to the rotation schedule +// to the rotation schedule. func ksRotate(in uint32) (out []uint32) { out = make([]uint32, 16) last := in @@ -223,7 +223,7 @@ func ksRotate(in uint32) (out []uint32) { return } -// creates 16 56-bit subkeys from the original key +// creates 16 56-bit subkeys from the original key. func (c *desCipher) generateSubkeys(keyBytes []byte) { feistelBoxOnce.Do(initFeistelBox) diff --git a/src/crypto/internal/boring/boring.go b/src/crypto/internal/boring/boring.go index 7ea438d3a7..102380a839 100644 --- a/src/crypto/internal/boring/boring.go +++ b/src/crypto/internal/boring/boring.go @@ -36,7 +36,7 @@ func Unreachable() { panic("boringcrypto: invalid code execution") } -// provided by runtime to avoid os import +// provided by runtime to avoid os import. func runtime_arg0() string func hasSuffix(s, t string) bool { diff --git a/src/crypto/x509/internal/macos/corefoundation.go b/src/crypto/x509/internal/macos/corefoundation.go index 352eb8eecc..5387c5a015 100644 --- a/src/crypto/x509/internal/macos/corefoundation.go +++ b/src/crypto/x509/internal/macos/corefoundation.go @@ -47,7 +47,7 @@ func CFStringToString(ref CFRef) string { return string(b) } -// TimeToCFDateRef converts a time.Time into an apple CFDateRef +// TimeToCFDateRef converts a time.Time into an apple CFDateRef. func TimeToCFDateRef(t time.Time) CFRef { secs := t.Sub(time.Date(2001, 1, 1, 0, 0, 0, 0, time.UTC)).Seconds() ref := CFDateCreate(secs) |
