From a9366af77a86e7e434c587c1c5d618dd216de583 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Thu, 7 Sep 2023 07:59:19 +0100 Subject: [PATCH] signer: change AlgorithmEd25519 -> AlgorithmEdDSA The former name is deprecated in the latest go-cose. Signed-off-by: Sergei Trofimov --- corim/signer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corim/signer.go b/corim/signer.go index 9d6d15b4..04182d60 100644 --- a/corim/signer.go +++ b/corim/signer.go @@ -42,7 +42,7 @@ func getAlgAndKeyFromJWK(j []byte) (cose.Algorithm, crypto.Signer, error) { return noAlg, nil, fmt.Errorf("unknown elliptic curve %v", crv) } case ed25519.PrivateKey: - alg = cose.AlgorithmEd25519 + alg = cose.AlgorithmEdDSA case *rsa.PrivateKey: alg = rsaJWKToAlg(k) if alg == noAlg {