Skip to content

Commit 035cc57

Browse files
authored
Merge branch 'master' into allow-unencrypted-pem
2 parents 0087e11 + 23da29f commit 035cc57

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
## HEAD
44

5-
### Key management
6-
75
* Allow unencrypted PEM private key files by @JasonPowr
86
* `ReadPrivateKeyFile` and `FromProto` (via `PEMKeyFile`) now accept an empty password, treating the key as unencrypted. Previously, an empty password was rejected with an error.
7+
* Replace deprecated `golang.org/x/crypto/ed25519` with stdlib `crypto/ed25519` by @JasonPowr
98

109
## v1.7.3
1110

crypto/keys/der/der.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ import (
2323
"crypto/x509"
2424
"fmt"
2525

26+
"crypto/ed25519"
27+
2628
"github.com/google/trillian/crypto/keyspb"
27-
"golang.org/x/crypto/ed25519"
2829
"google.golang.org/protobuf/proto"
2930
)
3031

crypto/keys/testonly/keys.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ package testonly
2020
import (
2121
"crypto"
2222
"crypto/ecdsa"
23+
"crypto/ed25519"
2324
"crypto/rand"
2425
"crypto/rsa"
2526
"crypto/sha256"
@@ -29,8 +30,6 @@ import (
2930
"errors"
3031
"fmt"
3132
"math/big"
32-
33-
"golang.org/x/crypto/ed25519"
3433
)
3534

3635
// MustMarshalPublicPEMToDER reads a PEM-encoded public key and returns it in DER encoding.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ require (
2929
go.etcd.io/etcd/server/v3 v3.6.11
3030
go.etcd.io/etcd/v3 v3.6.11
3131
go.opencensus.io v0.24.0
32-
golang.org/x/crypto v0.49.0
3332
golang.org/x/sync v0.20.0
3433
golang.org/x/sys v0.42.0
3534
golang.org/x/tools v0.43.0
@@ -196,6 +195,7 @@ require (
196195
go.uber.org/zap v1.27.0 // indirect
197196
go.yaml.in/yaml/v2 v2.4.3 // indirect
198197
go.yaml.in/yaml/v3 v3.0.4 // indirect
198+
golang.org/x/crypto v0.49.0 // indirect
199199
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect
200200
golang.org/x/mod v0.34.0 // indirect
201201
golang.org/x/net v0.52.0 // indirect

0 commit comments

Comments
 (0)