Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeickert committed Dec 5, 2023
1 parent 4512bb7 commit 1eab7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libspark/aead.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct AEADEncryptedData {

// Key commitment must be the correct size, which also includes an encoded size
READWRITE(key_commitment);
if (key_commitment.size() != 1 + AEAD_COMMIT_SIZE) {
if (key_commitment.size() != AEAD_COMMIT_SIZE) {
std::cout << "Bad keycom size " << key_commitment.size() << std::endl;
throw std::invalid_argument("Cannot deserialize AEAD data due to bad key commitment size");
}
Expand Down

0 comments on commit 1eab7c7

Please sign in to comment.