• Michael Munday's avatar
    crypto/{aes,cipher,rand}: use binary.{Big,Little}Endian methods · 4a842f25
    Michael Munday authored
    Use the binary.{Big,Little}Endian integer encoding methods rather
    than unsafe or local implementations. These methods are tested to
    ensure they inline correctly and don't add unnecessary bounds checks,
    so it seems better to use them wherever possible.
    
    This introduces a dependency on encoding/binary to crypto/cipher. I
    think this is OK because other "L3" packages already import
    encoding/binary.
    
    Change-Id: I5cf01800d08554ca364e46cfc1d9445cf3c711a0
    Reviewed-on: https://go-review.googlesource.com/115555
    Run-TryBot: Michael Munday <mike.munday@ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    4a842f25
Name
Last commit
Last update
..
aes_gcm.go Loading commit data...
aes_test.go Loading commit data...
asm_amd64.s Loading commit data...
asm_arm64.s Loading commit data...
asm_ppc64le.s Loading commit data...
asm_s390x.s Loading commit data...
block.go Loading commit data...
cbc_s390x.go Loading commit data...
cipher.go Loading commit data...
cipher_asm.go Loading commit data...
cipher_generic.go Loading commit data...
cipher_ppc64le.go Loading commit data...
cipher_s390x.go Loading commit data...
const.go Loading commit data...
ctr_s390x.go Loading commit data...
gcm_amd64.s Loading commit data...
gcm_arm64.s Loading commit data...
gcm_s390x.go Loading commit data...
modes.go Loading commit data...
modes_test.go Loading commit data...