Documentation ¶ Index ¶ Variables type SHA512 func (h *SHA512) Compare(ctx context.Context, hash, data []byte) error func (h *SHA512) Hash(_ context.Context, data []byte) ([]byte, error) Constants ¶ This section is empty. Variables ¶ View Source var ErrHashMismatch = errors.New("hash mismatch") Functions ¶ This section is empty. Types ¶ type SHA512 ¶ type SHA512 struct{} func (*SHA512) Compare ¶ func (h *SHA512) Compare(ctx context.Context, hash, data []byte) error func (*SHA512) Hash ¶ func (h *SHA512) Hash(_ context.Context, data []byte) ([]byte, error) Source Files ¶ View all Source files hasher_sha512.go Click to show internal directories. Click to hide internal directories.