Debian Codegraph @

sign_legacy_test.go

raw symbols SCIP
1 //go:build legacy
2
3 package pkcs7
4
5 import (
6 "crypto/x509"
7 "testing"
8 )
9
10 func TestLegacySign(t *testing.T) {
11 testSign(t, []x509.SignatureAlgorithm{
12 x509.SHA1WithRSA,
13 x509.ECDSAWithSHA1,
14 })
15 }
16
17 func TestLegacySignWithoutAttributes(t *testing.T) {
18 testSignWithoutAttributes(t, []x509.SignatureAlgorithm{
19 x509.SHA1WithRSA,
20 x509.ECDSAWithSHA1,
21 })
22 }