go/src/crypto/sha1/sha1_test.go

type sha1Test

var golden

func TestGolden(t *testing.T) {}

func TestGoldenMarshal(t *testing.T) {}

func TestSize(t *testing.T) {}

func TestBlockSize(t *testing.T) {}

// Tests that blockGeneric (pure Go) and block (in assembly for some architectures) match.
func TestBlockGeneric(t *testing.T) {}

type unmarshalTest

var largeUnmarshalTests

func safeSum(h hash.Hash) (sum []byte, err error) {}

func TestLargeHashes(t *testing.T) {}

func TestAllocations(t *testing.T) {}

func TestSHA1Hash(t *testing.T) {}

var bench

var buf

func benchmarkSize(b *testing.B, size int) {}

func BenchmarkHash8Bytes(b *testing.B) {}

func BenchmarkHash320Bytes(b *testing.B) {}

func BenchmarkHash1K(b *testing.B) {}

func BenchmarkHash8K(b *testing.B) {}