Skip to content

Commit

Permalink
Fix Windows build (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianstrauch authored Mar 2, 2023
1 parent f0cbedd commit 58e2730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions internal/pkg/secret/encryption_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import (
"github.com/confluentinc/cli/internal/pkg/log"
)

const (
SaltLength = 24
NonceLength = 12
)

// Encryption Engine performs Encryption, Decryption and Hash operations.
type EncryptionEngine interface {
Encrypt(plainText string, key []byte) (string, string, error)
Expand Down
2 changes: 0 additions & 2 deletions internal/pkg/secret/encryption_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
const (
iterationNumber = 10000
keyLength = 32
SaltLength = 24
NonceLength = 12
)

func GenerateRandomBytes(n int) ([]byte, error) {
Expand Down

0 comments on commit 58e2730

Please sign in to comment.