Skip to content

Commit

Permalink
update go.mod and import paths (#70)
Browse files Browse the repository at this point in the history
After changing the name of the repo from openssl-fips to simply openssl
we must also update the go.mod file and import paths to ensure everything
continues to build correctly.
  • Loading branch information
derekparker authored Jun 5, 2023
1 parent 8caa99e commit 724e32b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/golang-fips/openssl-fips
module github.com/golang-fips/openssl

go 1.18
2 changes: 1 addition & 1 deletion openssl/bbig/big.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"math/big"
"unsafe"

"github.com/golang-fips/openssl-fips/openssl"
"github.com/golang-fips/openssl/openssl"
)

func Enc(b *big.Int) openssl.BigInt {
Expand Down
4 changes: 2 additions & 2 deletions openssl/ecdh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

"github.com/golang-fips/openssl-fips/openssl"
"github.com/golang-fips/openssl/openssl"
)

func TestECDH(t *testing.T) {
Expand Down Expand Up @@ -157,7 +157,7 @@ func TestInvalidPublicKey(t *testing.T) {
// Points not on the curve.
"046b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f6",
"0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
};
}

for _, input := range keys {
k, err := openssl.NewPublicKeyECDH("P-256", hexDecode(t, input))
Expand Down
4 changes: 2 additions & 2 deletions openssl/ecdsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"crypto/elliptic"
"testing"

"github.com/golang-fips/openssl-fips/openssl"
"github.com/golang-fips/openssl-fips/openssl/bbig"
"github.com/golang-fips/openssl/openssl"
"github.com/golang-fips/openssl/openssl/bbig"
)

func testAllCurves(t *testing.T, f func(*testing.T, elliptic.Curve)) {
Expand Down
3 changes: 1 addition & 2 deletions openssl/openssl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (
"runtime"
"testing"

"github.com/golang-fips/openssl-fips/openssl"
"github.com/golang-fips/openssl/openssl"
)


func TestMain(m *testing.M) {
exitVal := m.Run()
runtime.GC()
Expand Down
4 changes: 2 additions & 2 deletions openssl/rsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strconv"
"testing"

"github.com/golang-fips/openssl-fips/openssl"
"github.com/golang-fips/openssl-fips/openssl/bbig"
"github.com/golang-fips/openssl/openssl"
"github.com/golang-fips/openssl/openssl/bbig"
)

func fromBase16(base16 string) openssl.BigInt {
Expand Down

0 comments on commit 724e32b

Please sign in to comment.