This file is indexed.

/usr/share/gocode/src/github.com/coreos/go-oidc/jose/sig.go is in golang-github-coreos-go-oidc-dev 0.0~git20160926.0.16c5ecc-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package jose

import (
	"fmt"
)

type Verifier interface {
	ID() string
	Alg() string
	Verify(sig []byte, data []byte) error
}

type Signer interface {
	Verifier
	Sign(data []byte) (sig []byte, err error)
}

func NewVerifier(jwk JWK) (Verifier, error) {
	if jwk.Type != "RSA" {
		return nil, fmt.Errorf("unsupported key type %q", jwk.Type)
	}

	return NewVerifierRSA(jwk)
}