tpm2-tss-engine icon indicating copy to clipboard operation
tpm2-tss-engine copied to clipboard

Extend key -read and -write functions

Open chris2511 opened this issue 1 year ago • 0 comments

If an existing key or the new key is not intended to be stored in a file, the current implementation requires the creation of temporary files with all its odds (cleanup, symlink attack, mktemp)

This change allows to provide the key in many different ways:

A filename of "-" translates to for reading and for writing.

If the file named by "filename" does not exist, check whether it contains a "-----BEGIN" and try interpreting the filename itself as key.

Extend documentation in README.md

chris2511 avatar Nov 19 '23 20:11 chris2511