Commit ab3901f
committed
crypto: Implement the load or generate pattern for keys
Add a function to implement the pattern used when generating key pairs:
try to load the keys from the file and generate new keys if the file is
not present. The new function can optionally check if the keys in the
provided file match the expected algorithm.
Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>1 parent 1f19ed7 commit ab3901f
1 file changed
+439
-0
lines changed
0 commit comments