Skip to content

Commit eada007

Browse files
committed
rename module and remove openssl folder
1 parent 4e5b3fc commit eada007

31 files changed

+14
-15
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
run: sudo sh ./scripts/openssl.sh ${{ matrix.openssl-version }}
2222
- name: Check headers
2323
working-directory: ./cmd/checkheader
24-
run: go run . --ossl-include /usr/local/src/openssl-${{ matrix.openssl-version }}/include -shim ../../openssl/shims.h
24+
run: go run . --ossl-include /usr/local/src/openssl-${{ matrix.openssl-version }}/include -shim ../../shims.h
2525
- name: Set OpenSSL config and prove FIPS
2626
run: |
2727
sudo cp ./scripts/openssl-3.cnf /usr/local/ssl/openssl.cnf
28-
go test -v -count 0 ./openssl | grep -q "FIPS enabled: true"
28+
go test -v -count 0 . | grep -q "FIPS enabled: true"
2929
if: ${{ matrix.openssl-version == '3.0.1' }}
3030
env:
3131
GO_OPENSSL_VERSION_OVERRIDE: ${{ matrix.openssl-version }}

openssl/aes.go renamed to aes.go

File renamed without changes.
File renamed without changes.

openssl/bbig/big.go renamed to bbig/big.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"math/big"
1212
"unsafe"
1313

14-
"github.com/golang-fips/openssl-fips/openssl"
14+
"github.com/golang-fips/openssl"
1515
)
1616

1717
func Enc(b *big.Int) openssl.BigInt {

openssl/big.go renamed to big.go

File renamed without changes.

cmd/checkheader/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
const description = `
3131
Example: A check operation:
32-
go run ./cmd/checkheader --ossl-include /usr/local/src/openssl-1.1.1/include -shim ./openssl/shims.h
32+
go run ./cmd/checkheader --ossl-include /usr/local/src/openssl-1.1.1/include -shim ./shims.h
3333
Checkheader generates a C program and compiles it with gcc. The compilation verifies types and functions defined in the target
3434
header file match the definitions in --ossl-include.
3535
`

openssl/ec.go renamed to ec.go

File renamed without changes.

openssl/ecdh.go renamed to ecdh.go

File renamed without changes.

openssl/ecdh_test.go renamed to ecdh_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"encoding/hex"
99
"testing"
1010

11-
"github.com/golang-fips/openssl-fips/openssl"
11+
"github.com/golang-fips/openssl"
1212
)
1313

1414
func TestECDH(t *testing.T) {
File renamed without changes.

openssl/ecdsa_test.go renamed to ecdsa_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"crypto/elliptic"
1010
"testing"
1111

12-
"github.com/golang-fips/openssl-fips/openssl"
13-
"github.com/golang-fips/openssl-fips/openssl/bbig"
12+
"github.com/golang-fips/openssl"
13+
"github.com/golang-fips/openssl/bbig"
1414
)
1515

1616
func testAllCurves(t *testing.T, f func(*testing.T, elliptic.Curve)) {

openssl/evp.go renamed to evp.go

File renamed without changes.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/golang-fips/openssl-fips
1+
module github.com/golang-fips/openssl
22

33
go 1.18
File renamed without changes.
File renamed without changes.

openssl/hkdf.go renamed to hkdf.go

File renamed without changes.

openssl/hkdf_test.go renamed to hkdf_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"bytes"
88
"testing"
99

10-
"github.com/golang-fips/openssl-fips/openssl"
10+
"github.com/golang-fips/openssl"
1111
)
1212

1313
func TestExtractHKDF(t *testing.T) {
@@ -70,4 +70,3 @@ func TestExpandHKDF(t *testing.T) {
7070
t.Errorf("OKM doesn't match\ngot: %#v\nexp: %#v", buf, expected)
7171
}
7272
}
73-

openssl/hmac.go renamed to hmac.go

File renamed without changes.
File renamed without changes.

openssl/init.go renamed to init.go

File renamed without changes.
File renamed without changes.

openssl/openssl_test.go renamed to openssl_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/golang-fips/openssl-fips/openssl"
13+
"github.com/golang-fips/openssl"
1414
)
1515

1616
// getVersion returns the OpenSSL version to use for testing.
File renamed without changes.

openssl/rand.go renamed to rand.go

File renamed without changes.

openssl/rand_test.go renamed to rand_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package openssl_test
66
import (
77
"testing"
88

9-
"github.com/golang-fips/openssl-fips/openssl"
9+
"github.com/golang-fips/openssl"
1010
)
1111

1212
func TestRand(t *testing.T) {

openssl/rsa.go renamed to rsa.go

File renamed without changes.

openssl/rsa_test.go renamed to rsa_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"strconv"
1212
"testing"
1313

14-
"github.com/golang-fips/openssl-fips/openssl"
15-
"github.com/golang-fips/openssl-fips/openssl/bbig"
14+
"github.com/golang-fips/openssl"
15+
"github.com/golang-fips/openssl/bbig"
1616
)
1717

1818
func TestRSAKeyGeneration(t *testing.T) {

openssl/sha.go renamed to sha.go

File renamed without changes.

openssl/sha_test.go renamed to sha_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"io"
1111
"testing"
1212

13-
"github.com/golang-fips/openssl-fips/openssl"
13+
"github.com/golang-fips/openssl"
1414
)
1515

1616
func TestSha(t *testing.T) {

openssl/shims.h renamed to shims.h

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)