Order of loading keys
tuxuser opened this issue · comments
tuxuser commented
Planned architecture of loading keyfiles:
Introduce directories to store each type of key.
- OdkKeys/
- CikKeys/
- XvdSignKeys/
- Load from global directory: Users//AppData/xvdtool or something like that
- Load from executable directory
- Provide cmdline parameters, e.g.
-rsa rsaPrivKey.bin -cik cikKey.bin -odk odkKey.bin
. Parameters on cmdline take precedence of course.
emoose commented
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?
tuxuser commented
tuxuser commented
Thanks for merging!