- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SupportedECSignatureAlgorithms (0.22 sec)
-
security/pkg/pki/util/crypto.go
// is used then an error is returned func GetEllipticCurve(privKey *crypto.PrivateKey) (elliptic.Curve, error) { switch key := (*privKey).(type) { // this should agree with var SupportedECSignatureAlgorithms case *ecdsa.PrivateKey: if key.Curve == elliptic.P384() { return key.Curve, nil } return elliptic.P256(), nil default: return nil, fmt.Errorf("private key is not ECDSA based") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 5.3K bytes - Viewed (0) -
security/pkg/pki/ra/k8s_ra_test.go
} }) } } func createFakeCsr(t *testing.T) []byte { options := pkiutil.CertOptions{ Host: testCsrHostName, RSAKeySize: 2048, PKCS8Key: false, ECSigAlg: pkiutil.SupportedECSignatureAlgorithms("ECDSA"), } csrPEM, _, err := pkiutil.GenCSR(options) if err != nil { t.Fatalf("Error creating Mock CA client: %v", err) return nil } return csrPEM }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 27 00:44:54 UTC 2023 - 9.7K bytes - Viewed (0)