aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-18 23:34:45 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-18 23:34:45 +0200
commit0b425570421752843af6f2494dfd5a451b4e28b8 (patch)
treef5e8f34a15ed476db59fe259c23f5801f92daf77 /README.md
parentca9b1900e305db08099d6b22f3144f6093131ae5 (diff)
downloadaerogramme-0b425570421752843af6f2494dfd5a451b4e28b8.tar.gz
aerogramme-0b425570421752843af6f2494dfd5a451b4e28b8.zip
crypto notes
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
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")`