mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-24 15:55:17 -04:00
Simplify node lock and various small changes
Co-authored-by: Fabian Kammel <fabian@kammel.dev> Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
This commit is contained in:
parent
2bcf001d52
commit
cce2611e2a
31 changed files with 530 additions and 229 deletions
|
@ -12,7 +12,7 @@ type ClusterKMS struct {
|
|||
masterKey []byte
|
||||
}
|
||||
|
||||
// CreateKEK sets the CoordinatorKMS masterKey.
|
||||
// CreateKEK sets the ClusterKMS masterKey.
|
||||
func (c *ClusterKMS) CreateKEK(ctx context.Context, keyID string, kek []byte) error {
|
||||
c.masterKey = kek
|
||||
return nil
|
||||
|
|
|
@ -12,7 +12,7 @@ func TestMain(m *testing.M) {
|
|||
goleak.VerifyTestMain(m)
|
||||
}
|
||||
|
||||
func TestCoordinatorKMS(t *testing.T) {
|
||||
func TestClusterKMS(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
kms := &ClusterKMS{}
|
||||
masterKey := []byte("Constellation")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue