From 0b425570421752843af6f2494dfd5a451b4e28b8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 18 May 2022 23:34:45 +0200 Subject: crypto notes --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 65f90ae..bf9958d 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Keys that are stored in K2V under PK `keys`: Operations: - **Initialize**(`password`): + - if `"salt"` or `"public"` already exist, BAIL - generate salt `S` (32 random bytes) - write `S` at `"salt"` - `write("salt", S)` @@ -79,6 +80,7 @@ Operations: - serialize `box_contents = (private, master)` - seal box `blob = seal_key(box_contents)` - write `concat(Skey, blob)` at `"password:{hex(digest[..16])}"` + - write `public` at `"public"` - **Open**(`password`): - load `S = read("salt")` -- cgit v1.2.3