Index: services/vanadium/security/public_key.go |
diff --git a/services/vanadium/security/public_key.go b/services/vanadium/security/public_key.go |
index 3301c226846cff94900efb9a4e2436c5041c0ad0..27078c7a3d8c80ab02daa9eadb700a58baeebb23 100644 |
--- a/services/vanadium/security/public_key.go |
+++ b/services/vanadium/security/public_key.go |
@@ -6,9 +6,7 @@ package main |
import ( |
"crypto/ecdsa" |
- "crypto/elliptic" |
"crypto/md5" |
- "crypto/rand" |
"crypto/x509" |
"encoding" |
"errors" |
@@ -25,15 +23,6 @@ const ( |
sha512Hash = hash("SHA512") // sha512 cryptographic hash function defined in FIPS 180-2. |
) |
-// newPrincipalKey generates an ECDSA (public, private) key pair. |
-func newPrincipalKey() (publicKey, *ecdsa.PrivateKey, error) { |
- priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) |
- if err != nil { |
- return nil, nil, err |
- } |
- return newECDSAPublicKey(&priv.PublicKey), priv, nil |
-} |
- |
// publicKey represents a public key using an unspecified algorithm. |
// |
// MarshalBinary returns the DER-encoded PKIX representation of the public key, |