Skip to content

Commit

Permalink
chore: remove unused code left over from previous iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
bojidar-bg committed Dec 27, 2023
1 parent 8675bfe commit 36986c2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 70 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ require (
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.16.0
golang.org/x/crypto v0.17.0
golang.org/x/exp v0.0.0-20231127185646-65229373498e
google.golang.org/protobuf v1.32.0
gopkg.in/yaml.v2 v2.4.0
Expand Down Expand Up @@ -259,6 +258,7 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.26.0 // indirect
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/oauth2 v0.12.0 // indirect
Expand Down
8 changes: 0 additions & 8 deletions pkg/crypto/aes.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"io"

"golang.org/x/crypto/pbkdf2"
)

// Helper functions related to AES-GCM encryption, used by the crypto package itself.
Expand Down Expand Up @@ -65,11 +62,6 @@ func generateNonce() ([]byte, error) {
return nonce, nil
}

// could drive a nonce or a symmetric key, both are []byte
func deriveAesKey(password []byte, salt []byte) []byte {
return pbkdf2.Key(password, salt, pbkdf2_ITER_COUNT, aes_KEY_SIZE, sha256.New)
}

func createAESGCMMode(key []byte) (cipher.AEAD, error) {
// Create a cipher block from the key
block, err := aes.NewCipher([]byte(key))
Expand Down
61 changes: 0 additions & 61 deletions pkg/docker/pod.go

This file was deleted.

0 comments on commit 36986c2

Please sign in to comment.