const crypto/sha256.Size
23 uses
crypto/sha256 (current package)
sha256.go#L22: const Size = 32
sha256.go#L53: func Sum256(data []byte) [Size]byte {
sha256.go#L59: var sum [Size]byte
crypto/hpke
kdf.go#L65: var hkdfSHA256 = &hkdfKDF{hash: sha256.New, id: 0x0001, nH: sha256.Size}
crypto/tls
ticket.go#L330: encrypted := make([]byte, aes.BlockSize+len(state)+sha256.Size)
ticket.go#L332: ciphertext := encrypted[aes.BlockSize : len(encrypted)-sha256.Size]
ticket.go#L333: authenticated := encrypted[:len(encrypted)-sha256.Size]
ticket.go#L334: macBytes := encrypted[len(encrypted)-sha256.Size:]
ticket.go#L371: if len(encrypted) < aes.BlockSize+sha256.Size {
ticket.go#L376: ciphertext := encrypted[aes.BlockSize : len(encrypted)-sha256.Size]
ticket.go#L377: authenticated := encrypted[:len(encrypted)-sha256.Size]
ticket.go#L378: macBytes := encrypted[len(encrypted)-sha256.Size:]
github.com/gotd/td/crypto
rsa_pad.go#L27: dataWithHashLength = dataWithPaddingLength + sha256.Size
github.com/gotd/td/crypto/srp
srp.go#L48: func xor32(a, b [sha256.Size]byte) (res [sha256.Size]byte) {
github.com/refraction-networking/utls
ticket.go#L325: encrypted := make([]byte, aes.BlockSize+len(state)+sha256.Size)
ticket.go#L327: ciphertext := encrypted[aes.BlockSize : len(encrypted)-sha256.Size]
ticket.go#L328: authenticated := encrypted[:len(encrypted)-sha256.Size]
ticket.go#L329: macBytes := encrypted[len(encrypted)-sha256.Size:]
ticket.go#L366: if len(encrypted) < aes.BlockSize+sha256.Size {
ticket.go#L371: ciphertext := encrypted[aes.BlockSize : len(encrypted)-sha256.Size]
ticket.go#L372: authenticated := encrypted[:len(encrypted)-sha256.Size]
ticket.go#L373: macBytes := encrypted[len(encrypted)-sha256.Size:]
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |