config: remove support for ed25519 signing keys (#2430)

This commit is contained in:
Caleb Doxsey 2021-08-04 09:30:47 -06:00 committed by GitHub
parent c0f9de2a46
commit cc9962cca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 20 deletions

View file

@ -3,7 +3,6 @@ package cryptutil
import (
"crypto"
"crypto/ecdsa"
"crypto/ed25519"
"crypto/rsa"
"crypto/x509"
"encoding/hex"
@ -76,8 +75,6 @@ func loadPublicKey(b []byte) (interface{}, error) {
return k.Public(), nil
case *ecdsa.PrivateKey:
return k.Public(), nil
case ed25519.PrivateKey: // note, not a pointer
return k.Public(), nil
default:
return nil, fmt.Errorf("private key is unsupported type")
}