server: go.chromium.org/goma/server/hash Index | Files

package hash

import "go.chromium.org/goma/server/hash"

Package hash provides a hash function used in goma.

Index

Package Files

hash.go

func SHA256Content Uses

func SHA256Content(b []byte) string

SHA256Content returns a hexdecimal representation of the SHA256 hash of the given content.

func SHA256File Uses

func SHA256File(path string) (string, error)

SHA256File returns a hexadecimal representation of the SHA256 hash of the file contents.

func SHA256HMAC Uses

func SHA256HMAC(key []byte, data []byte) string

SHA256HMAC returns a hexdecimal representation of the SHA256 hmac of the given two content.

func SHA256Proto Uses

func SHA256Proto(m proto.Message) (string, error)

SHA256Proto returns a hexdecimal representation of the SHA256 hash of the given protocol buffer.

Package hash imports 6 packages (graph) and is imported by 4 packages. Updated 2019-05-20. Refresh now. Tools for package owners.