Skip to content

Commit

Permalink
Move minisign to util/
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Nov 10, 2023
1 parent 21468a6 commit eddfa20
Show file tree
Hide file tree
Showing 34 changed files with 13 additions and 1,432 deletions.
2 changes: 1 addition & 1 deletion client/command/armory/armory.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/bishopfox/sliver/client/command/extensions"
"github.com/bishopfox/sliver/client/command/settings"
"github.com/bishopfox/sliver/client/console"
"github.com/bishopfox/sliver/server/cryptography/minisign"
"github.com/bishopfox/sliver/util/minisign"
)

// ArmoryIndex - Index JSON containing alias/extension/bundle information
Expand Down
2 changes: 1 addition & 1 deletion client/command/armory/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/bishopfox/sliver/client/command/extensions"
"github.com/bishopfox/sliver/client/console"
"github.com/bishopfox/sliver/client/constants"
"github.com/bishopfox/sliver/server/cryptography/minisign"
"github.com/bishopfox/sliver/util/minisign"
)

// ErrPackageNotFound - The package was not found
Expand Down
2 changes: 1 addition & 1 deletion client/command/armory/parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"time"

"github.com/bishopfox/sliver/client/assets"
"github.com/bishopfox/sliver/server/cryptography/minisign"
"github.com/bishopfox/sliver/util/minisign"
)

// ArmoryIndexParser - Generic interface to fetch armory indexes
Expand Down
16 changes: 8 additions & 8 deletions go-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ else
exit 1
fi

# util / minisign
if go test -tags=server,$TAGS ./util/minisign ; then
:
else
cat ~/.sliver/logs/sliver.log
exit 1
fi

## Implant

# implant / sliver / extension
Expand Down Expand Up @@ -131,14 +139,6 @@ else
exit 1
fi

# server / cryptography / minisign
if go test -tags=server,$TAGS ./server/cryptography/minisign ; then
:
else
cat ~/.sliver/logs/sliver.log
exit 1
fi

# server / gogo
if go test -tags=server,$TAGS ./server/gogo ; then
:
Expand Down
2 changes: 1 addition & 1 deletion server/cryptography/cryptography.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import (
"sync"

"filippo.io/age"
"github.com/bishopfox/sliver/server/cryptography/minisign"
"github.com/bishopfox/sliver/server/db"
"github.com/bishopfox/sliver/util/encoders"
"github.com/bishopfox/sliver/util/minisign"
"golang.org/x/crypto/chacha20poly1305"
)

Expand Down
2 changes: 1 addition & 1 deletion server/cryptography/cryptography_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"

implantCrypto "github.com/bishopfox/sliver/implant/sliver/cryptography"
"github.com/bishopfox/sliver/server/cryptography/minisign"
"github.com/bishopfox/sliver/util/minisign"
)

var (
Expand Down
21 changes: 0 additions & 21 deletions server/cryptography/minisign/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion server/cryptography/minisign/internal/testdata/message.txt

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions server/cryptography/minisign/internal/testdata/minisign.key

This file was deleted.

2 changes: 0 additions & 2 deletions server/cryptography/minisign/internal/testdata/minisign.pub

This file was deleted.

This file was deleted.

267 changes: 0 additions & 267 deletions server/cryptography/minisign/minisign.go

This file was deleted.

Loading

0 comments on commit eddfa20

Please sign in to comment.