mirror of https://github.com/golang/go.git
Export cipher.xorBytes as subtle.XORBytes, for proposal #53021, to provide fast XOR to cryptography libraries outside crypto/cipher. Along with the move, implement the alignment check TODO in xor_generic.go, so that systems with neither unaligned accesses nor custom assembly can still XOR a word at a time in word-based algorithms like GCM. This removes the need for the separate cipher.xorWords. Fixes #53021. Change-Id: I58f80a922f1cff671b5ebc6168eb046e702b5a4c Reviewed-on: https://go-review.googlesource.com/c/go/+/421435 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Filippo Valsorda <filippo@golang.org> |
||
|---|---|---|
| .. | ||
| benchmark_test.go | ||
| cbc.go | ||
| cbc_aes_test.go | ||
| cfb.go | ||
| cfb_test.go | ||
| cipher.go | ||
| cipher_test.go | ||
| common_test.go | ||
| ctr.go | ||
| ctr_aes_test.go | ||
| ctr_test.go | ||
| example_test.go | ||
| export_test.go | ||
| fuzz_test.go | ||
| gcm.go | ||
| gcm_test.go | ||
| io.go | ||
| ofb.go | ||
| ofb_test.go | ||