diff --git a/Makefile b/Makefile index 1b05f8c..3c7f94e 100755 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go) GOARCH := $(shell go env GOARCH) GOOS := $(shell go env GOOS) BUILDDATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ') -CODEVERSION := "1.1.3" +CODEVERSION := "1.1.4" CODEBUILDREVISION := $(shell git rev-parse HEAD) .PHONY: all dep build clean test coverage zip lint diff --git a/README.md b/README.md index 402e6f4..263527f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **ecutils** ## Version of the *Software* -**1.1.3** +**1.1.4** ## *Software* Description diff --git a/build.sh b/build.sh index 7438876..40dd643 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ PKG="$PROJECT_NAME" PKG_LIST=$(go list "${PKG}/..." | grep -v /vendor/) GO_FILES=$(find . -name '*.go' | grep -v /vendor/ | grep -v _test.go) BUILDDATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') -CODEVERSION="1.1.3" +CODEVERSION="1.1.4" CODEBUILDREVISION=$(git rev-parse HEAD) TARGETS=( "linux/386" diff --git a/cmd/main.go b/cmd/main.go index daa5bc4..ee539b7 100755 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,11 +1,11 @@ package main import ( - pkg_ec "github.com/isakruas/go-ecutils/internal/ec" - pkg_ecdh "github.com/isakruas/go-ecutils/internal/ecdh" - pkg_ecdsa "github.com/isakruas/go-ecutils/internal/ecdsa" - pkg_eck "github.com/isakruas/go-ecutils/internal/eck" - pkg_ecmo "github.com/isakruas/go-ecutils/internal/ecmo" + pkg_ec "github.com/isakruas/go-ecutils/pkg/ec" + pkg_ecdh "github.com/isakruas/go-ecutils/pkg/ecdh" + pkg_ecdsa "github.com/isakruas/go-ecutils/pkg/ecdsa" + pkg_eck "github.com/isakruas/go-ecutils/pkg/eck" + pkg_ecmo "github.com/isakruas/go-ecutils/pkg/ecmo" "flag" "fmt" diff --git a/internal/ec/ec.go b/pkg/ec/ec.go similarity index 100% rename from internal/ec/ec.go rename to pkg/ec/ec.go diff --git a/internal/ec/ec_test.go b/pkg/ec/ec_test.go similarity index 99% rename from internal/ec/ec_test.go rename to pkg/ec/ec_test.go index 2016e0b..773f306 100755 --- a/internal/ec/ec_test.go +++ b/pkg/ec/ec_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/isakruas/go-ecutils/internal/ec" + "github.com/isakruas/go-ecutils/pkg/ec" ) func TestECTrapdoorPanic(t *testing.T) { diff --git a/internal/ecdh/ecdh.go b/pkg/ecdh/ecdh.go similarity index 97% rename from internal/ecdh/ecdh.go rename to pkg/ecdh/ecdh.go index e858390..4c9ec38 100755 --- a/internal/ecdh/ecdh.go +++ b/pkg/ecdh/ecdh.go @@ -9,7 +9,7 @@ package ecdh import ( "math/big" - "github.com/isakruas/go-ecutils/internal/ec" + "github.com/isakruas/go-ecutils/pkg/ec" ) // ECDH represents an Elliptic Curve Diffie Hellman entity with a curve and a private key diff --git a/internal/ecdh/ecdh_test.go b/pkg/ecdh/ecdh_test.go similarity index 98% rename from internal/ecdh/ecdh_test.go rename to pkg/ecdh/ecdh_test.go index cbcaef0..5a5c50f 100755 --- a/internal/ecdh/ecdh_test.go +++ b/pkg/ecdh/ecdh_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/isakruas/go-ecutils/internal/ec" - "github.com/isakruas/go-ecutils/internal/ecdh" + "github.com/isakruas/go-ecutils/pkg/ec" + "github.com/isakruas/go-ecutils/pkg/ecdh" ) func TestECDHPublicKey(t *testing.T) { diff --git a/internal/ecdsa/ecdsa.go b/pkg/ecdsa/ecdsa.go similarity index 98% rename from internal/ecdsa/ecdsa.go rename to pkg/ecdsa/ecdsa.go index 78434c2..dccdff7 100755 --- a/internal/ecdsa/ecdsa.go +++ b/pkg/ecdsa/ecdsa.go @@ -11,7 +11,7 @@ import ( "math/rand" "time" - "github.com/isakruas/go-ecutils/internal/ec" + "github.com/isakruas/go-ecutils/pkg/ec" ) // ECDSA structure diff --git a/internal/ecdsa/ecdsa_test.go b/pkg/ecdsa/ecdsa_test.go similarity index 97% rename from internal/ecdsa/ecdsa_test.go rename to pkg/ecdsa/ecdsa_test.go index 377fd34..5bd63b3 100755 --- a/internal/ecdsa/ecdsa_test.go +++ b/pkg/ecdsa/ecdsa_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/isakruas/go-ecutils/internal/ec" - "github.com/isakruas/go-ecutils/internal/ecdsa" + "github.com/isakruas/go-ecutils/pkg/ec" + "github.com/isakruas/go-ecutils/pkg/ecdsa" ) func TestECDSAPublicKey(t *testing.T) { diff --git a/internal/eck/eck.go b/pkg/eck/eck.go similarity index 98% rename from internal/eck/eck.go rename to pkg/eck/eck.go index 2fd6c4b..b6e2c53 100755 --- a/internal/eck/eck.go +++ b/pkg/eck/eck.go @@ -9,7 +9,7 @@ import ( "fmt" "math/big" - "github.com/isakruas/go-ecutils/internal/ec" + "github.com/isakruas/go-ecutils/pkg/ec" ) // ECK structure holding an elliptic curve diff --git a/internal/eck/eck_test.go b/pkg/eck/eck_test.go similarity index 99% rename from internal/eck/eck_test.go rename to pkg/eck/eck_test.go index 7e142ba..3c1b8fc 100755 --- a/internal/eck/eck_test.go +++ b/pkg/eck/eck_test.go @@ -5,8 +5,8 @@ import ( "math/big" "testing" - "github.com/isakruas/go-ecutils/internal/ec" - "github.com/isakruas/go-ecutils/internal/eck" + "github.com/isakruas/go-ecutils/pkg/ec" + "github.com/isakruas/go-ecutils/pkg/eck" ) func TestECKEncodeDefault(t *testing.T) { diff --git a/internal/ecmo/ecmo.go b/pkg/ecmo/ecmo.go similarity index 97% rename from internal/ecmo/ecmo.go rename to pkg/ecmo/ecmo.go index 2de590e..4c86dfa 100755 --- a/internal/ecmo/ecmo.go +++ b/pkg/ecmo/ecmo.go @@ -13,9 +13,9 @@ package ecmo import ( "math/big" - "github.com/isakruas/go-ecutils/internal/ec" - "github.com/isakruas/go-ecutils/internal/ecdsa" - "github.com/isakruas/go-ecutils/internal/eck" + "github.com/isakruas/go-ecutils/pkg/ec" + "github.com/isakruas/go-ecutils/pkg/ecdsa" + "github.com/isakruas/go-ecutils/pkg/eck" ) // ECMO represents the Massey–Omura elliptic curve protocol. diff --git a/internal/ecmo/ecmo_test.go b/pkg/ecmo/ecmo_test.go similarity index 99% rename from internal/ecmo/ecmo_test.go rename to pkg/ecmo/ecmo_test.go index bead54a..4509490 100755 --- a/internal/ecmo/ecmo_test.go +++ b/pkg/ecmo/ecmo_test.go @@ -5,8 +5,8 @@ import ( "math/big" "testing" - "github.com/isakruas/go-ecutils/internal/ec" - "github.com/isakruas/go-ecutils/internal/ecmo" + "github.com/isakruas/go-ecutils/pkg/ec" + "github.com/isakruas/go-ecutils/pkg/ecmo" ) func TestECMOPublicKey(t *testing.T) {