File: hash_sha256.go

package info (click to toggle)
golang-github-go-git-go-git 5.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,648 kB
  • sloc: makefile: 81; sh: 76
file content (15 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//go:build sha256
// +build sha256

package hash

import "crypto"

const (
	// CryptoType defines what hash algorithm is being used.
	CryptoType = crypto.SHA256
	// Size defines the amount of bytes the hash yields.
	Size = 32
	// HexSize defines the strings size of the hash when represented in hexadecimal.
	HexSize = 64
)