crypto/aes: eliminate some bounds checking and manual truncation.
By converting array indices to uint8, they are automatically constrained in the array range, and the binary AND with 0xff is no longer needed anymore. Before: aes.BenchmarkEncrypt 363 ns/op After: aes.BenchmarkEncrypt 273 ns/op R=golang-dev, gri, agl CC=golang-dev, remy https://golang.org/cl/5450084
Showing
Please register or sign in to comment