Skip to content

Commit

Permalink
fixup! keydata*test.go: fix/add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sespiros committed Jan 16, 2024
1 parent 1c0fc52 commit d891631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keydata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ func (s *keyDataTestBase) TearDownSuite(c *C) {
}

func (s *keyDataTestBase) newPrimaryKey(c *C, sz1 int) PrimaryKey {
primaryKey := make([]byte, sz1)
primaryKey := make(PrimaryKey, sz1)
_, err := rand.Read(primaryKey)
c.Assert(err, IsNil)

return PrimaryKey(primaryKey)
return primaryKey
}

func (s *keyDataTestBase) mockProtectKeys(c *C, primaryKey PrimaryKey, kdfAlg crypto.Hash, modelAuthHash crypto.Hash) (out *KeyParams, unlockKey DiskUnlockKey) {
Expand Down

0 comments on commit d891631

Please sign in to comment.