File: hash.go

package info (click to toggle)
golang-github-twstrike-otr3 0.0~git20161015.0.744856d-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,080 kB
  • sloc: ansic: 127; makefile: 76
file content (15 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package otr3

import (
	"crypto/sha1"
	"hash"
)

func fingerprintHashInstanceForVersion(v int) hash.Hash {
	switch v {
	case 2, 3:
		return sha1.New()
	}

	return nil
}