Skip to content

feat: update crypto API usage to avoid deprecations in Go 1.22 #335

feat: update crypto API usage to avoid deprecations in Go 1.22

feat: update crypto API usage to avoid deprecations in Go 1.22 #335

Triggered via pull request September 3, 2024 12:48
Status Failure
Total duration 50s
Artifacts

lint.yaml

on: pull_request
lint-go
41s
lint-go
lint-commits
14s
lint-commits
lint-actions
8s
lint-actions
Fit to window
Zoom out
Zoom in

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