Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
number571 committed Oct 23, 2024
1 parent 011b403 commit b80e6cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
6 changes: 1 addition & 5 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ func (p *sClient) encryptWithParams(

data := joiner.NewBytesJoiner32([][]byte{pMsg, rand.GetBytes(pPadd)})
hash := hashing.NewHMACHasher(salt, bytes.Join(
[][]byte{
pkid,
pRecv.ToBytes(),
data,
},
[][]byte{pkid, pRecv.ToBytes(), data},
[]byte{},
)).ToBytes()

Expand Down
2 changes: 0 additions & 2 deletions pkg/client/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ var (
ErrDecodePayloadWrapper = &SClientError{"decode payload wrapper"}
ErrInvalidDataHash = &SClientError{"invalid data hash"}
ErrInvalidHashSign = &SClientError{"invalid hash sign"}
ErrDecodePayload = &SClientError{"decode payload"}
ErrEncryptSymmetricKey = &SClientError{"encrypt symmetric key"}
ErrDecodeBytesJoiner = &SClientError{"decode bytes joiner"}
ErrInvalidPubKeySize = &SClientError{"invalid pub key size"}
)
2 changes: 1 addition & 1 deletion test/result/badge_codelines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions test/result/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b80e6cc

Please sign in to comment.