INNER CODE UNIT · Go

signWithoutBioExpected

go-piv/piv-go · v2/piv/bio_integration_test.go:209

func signWithoutBioExpected(t *testing.T, signer crypto.Signer, message []byte) {
	digest := sha256.Sum256(message)
	sig, err := signer.Sign(rand.Reader, digest[:], crypto.SHA256)
	if err != nil {
		if isUnsupportedMatchPolicy(err) {
			t.Skipf("match policy not supported: %v", err)
		}
		t.Fatalf("expected signing to succeed without biometric verification: %v", err)
	}
	_ = sig
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…