feat: update crypto API usage to avoid deprecations in Go 1.22 #335
Annotations
4 errors
lint-go:
internal/keyservice/piv/ecdhkey.go#L37
SA1019: elliptic.Unmarshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function accepts an encoding equivalent to that of the NewPublicKey methods in crypto/ecdh. (staticcheck)
|
lint-go:
internal/keyservice/gpg/ecdhkey.go#L31
SA1019: elliptic.Unmarshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function accepts an encoding equivalent to that of the NewPublicKey methods in crypto/ecdh. (staticcheck)
|
lint-go:
internal/keyservice/gpg/ecdhkey.go#L38
SA1019: elliptic.Marshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function returns an encoding equivalent to that of PublicKey.Bytes in crypto/ecdh. (staticcheck)
|
lint-go
issues found
|