Skip to content

Commit

Permalink
signer: change AlgorithmEd25519 -> AlgorithmEdDSA
Browse files Browse the repository at this point in the history
The former name is deprecated in the latest go-cose.

Signed-off-by: Sergei Trofimov <[email protected]>
  • Loading branch information
setrofim committed Sep 7, 2023
1 parent df142c7 commit a9366af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corim/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a9366af

Please sign in to comment.