Skip to content

Commit dd4f531

Browse files
committed
tpmdriver: Allow usage of elliptic.Marshal
staticcheck complains about the usage of the deprecated function. However, the file is taken from go/crypto/x509.go. The function will be updated as soon as it is updated there. Signed-off-by: Simon Ott <[email protected]>
1 parent a1b62cd commit dd4f531

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tpmdriver/akcsr.go

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func marshalPublicKey(pub any) (publicKeyBytes []byte, publicKeyAlgorithm pkix.A
6464
if !pub.Curve.IsOnCurve(pub.X, pub.Y) {
6565
return nil, pkix.AlgorithmIdentifier{}, errors.New("x509: invalid elliptic curve public key")
6666
}
67+
//lint:ignore SA1019 update as soon as upstream is updated
6768
publicKeyBytes = elliptic.Marshal(pub.Curve, pub.X, pub.Y)
6869
publicKeyAlgorithm.Algorithm = oidPublicKeyECDSA
6970
var paramBytes []byte

0 commit comments

Comments
 (0)