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

ESFormats additions and fixes #5601

Merged
merged 6 commits into from Jun 15, 2017

Conversation

leoetlino
Copy link
Member

  • Add a SignedBlobReader (base reader for signed blobs, like TMDs, tickets and certs) and move some of the common code into this base class.
  • Add a CertReader and a cert chain parser that will be used by ES to verify containers.

@abhiaagarwal
Copy link

Related idea but maybe not pertaining to the scope of this PR; use the new std::byte for m_bytes?


std::vector<u8> CertReader::GetPublicKey() const
{
static const std::map<SignatureType, std::pair<size_t, size_t>> type_to_key_info = {{

This comment was marked as off-topic.

This comment was marked as off-topic.

@leoetlino
Copy link
Member Author

@goldenercobra That'd be really outside of the scope of this PR, which is mostly code reorganisation + a new reader.

Allows common signature parsing code to not be duplicated.
The ES function that used to make use of it was changed to be more
sane, so GetRawHeader() is now unused and useless.
This will be used to avoid duplicating cert chain parsing code.
On Windows, this would fail because the file handle wasn't closed.
@leoetlino leoetlino changed the title ESFormats additions ESFormats additions and fixes Jun 15, 2017
@leoetlino leoetlino merged commit 9bc1b65 into dolphin-emu:master Jun 15, 2017
@leoetlino leoetlino deleted the esformats-additions branch June 15, 2017 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants