func GetDupSigs()

in iimg/iimg.go [33:49]


func GetDupSigs(img image.Image) []string {
	m := map[string]struct{}{}
	var dups []string

	for _, tlv := range img.Tlvs {
		if tlv.Header.Type == image.IMAGE_TLV_KEYHASH {
			h := hex.EncodeToString(tlv.Data)
			if _, ok := m[h]; ok {
				dups = append(dups, h)
			} else {
				m[h] = struct{}{}
			}
		}
	}

	return dups
}