Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully specify all encodings. #7

Merged
merged 2 commits into from
Dec 7, 2020

Conversation

MarkLodato
Copy link
Collaborator

  • Specify that payload type is encoded as UTF-8 when passed to PAE. Previously this was ambiguous since PAYLOAD_TYPE was a unicode string while the type parameter of PAE() required a byte sequence.

  • Clarify that SERIALIZED_BODY is a byte sequence.

  • Spell out what Sign(), UTF8(), and Base64() are.

Closes #3.

NOTE: For Sign(), this PR simply documents the current state, which is that we do not yet have opinions on the signature algorithm, format, or key management. We may we want to be more opinionated in the future - that is still under discussion (but out of scope of this PR.)

* Specify that payload type is encoded as UTF-8 when passed to PAE.
  Previously this was ambiguous since PAYLOAD_TYPE was a unicode string
  while the `type` parameter of PAE() required a byte sequence.

* Clarify that SERIALIZED_BODY is a byte sequence.

* Spell out what Sign(), UTF8(), and Base64() are.

Closes secure-systems-lab#3.
Copy link
Collaborator

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look like solid clarifications. Thanks Mark!

@adityasaky adityasaky merged commit a4af882 into secure-systems-lab:master Dec 7, 2020
@MarkLodato MarkLodato deleted the pae-encoding branch December 14, 2020 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify encoding of payload type in PAE
3 participants