Skip to content

Commit

Permalink
responding to @suhasHere comments. Thank you!
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Hewett committed Aug 28, 2023
1 parent 0ecf80b commit 6417880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/mls/credential.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ struct CredentialBinding

bool valid_for(const SignaturePublicKey& signature_key) const;

TLS_SERIALIZABLE(credential, credential_key, signature)
TLS_SERIALIZABLE(cipher_suite, credential, credential_key, signature)

private:
bytes to_be_signed(const SignaturePublicKey& signature_key) const;
Expand Down
2 changes: 2 additions & 0 deletions lib/hpke/src/base64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ to_base64(const bytes& data)
}

const auto data_size = static_cast<int>(data.size());

// base64 encoding produces 4 characters for every 3 input bytes (rounded up)
const auto out_size = (data_size + 2) / 3 * 4;
auto out = bytes(out_size + 1); // NUL terminator

Expand Down

0 comments on commit 6417880

Please sign in to comment.