- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for privRSAOk (0.16 sec)
-
security/pkg/pki/util/verify_cert.go
priv, err := ParsePemEncodedKey(privPem) if err != nil { return err } privRSAKey, privRSAOk := priv.(*rsa.PrivateKey) pubRSAKey, pubRSAOk := cert.PublicKey.(*rsa.PublicKey) privECKey, privECOk := priv.(*ecdsa.PrivateKey) pubECKey, pubECOk := cert.PublicKey.(*ecdsa.PublicKey) rsaMatch := privRSAOk && pubRSAOk ecMatch := privECOk && pubECOk if rsaMatch {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 05 10:37:29 UTC 2022 - 5.9K bytes - Viewed (0)