fix tests that failed because of inconsistent usage of crypto API

This commit is contained in:
eyedeekay
2025-03-09 14:04:43 -04:00
parent ad7bac666b
commit 3212cae276
3 changed files with 3 additions and 4 deletions

View File

@ -31,7 +31,7 @@ Identical to KeysAndCert.
//
// https://geti2p.net/spec/common-structures#destination
type Destination struct {
KeysAndCert
*KeysAndCert
}
// Base32Address returns the I2P base32 address for this Destination.

View File

@ -28,7 +28,7 @@ Identical to KeysAndCert.
//
// https://geti2p.net/spec/common-structures#routeridentity
type RouterIdentity struct {
KeysAndCert
*KeysAndCert
}
// ReadRouterIdentity returns RouterIdentity from a []byte.

View File

@ -1,6 +1,7 @@
package ntcp
import (
"crypto/rand"
"math/big"
"time"
@ -9,8 +10,6 @@ import (
"github.com/go-i2p/go-i2p/lib/transport/noise"
"github.com/go-i2p/go-i2p/lib/transport/obfs"
"crypto/rand"
"github.com/samber/oops"
)