emoose / xvdtool

A command-line tool for manipulating Xbox One XVD & XVC files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Order of loading keys

tuxuser opened this issue · comments

Planned architecture of loading keyfiles:

Introduce directories to store each type of key.

  • OdkKeys/
  • CikKeys/
  • XvdSignKeys/
  1. Load from global directory: Users//AppData/xvdtool or something like that
  2. Load from executable directory
  3. Provide cmdline parameters, e.g. -rsa rsaPrivKey.bin -cik cikKey.bin -odk odkKey.bin. Parameters on cmdline take precedence of course.

Sounds good, the filename of each key can be the KeyID I suppose (GUID for CIKs, int for ODKs), for sign keys I guess the filename can be anything, we just check each file against the known hashes.

Maybe we should allow the format of the file to be both binary and text? If file is {key size} bytes exactly then read it in as binary, otherwise read it as a hex string and convert to binary?

As previously discussed, loading keys from hexstring is not supported.

Sent PR #10
It also addresses #6

Thanks for merging!