aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-20 12:49:53 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-20 12:49:53 +0200
commit46145350eb0e3bae8ca935d0f0f23eb1d40e6f58 (patch)
treee96976dd2e5e5e8f6e9bf9025ef4eb2446fff318 /README.md
parentaddaf087abfaa9fd41f75ce0c2181a2df48a972a (diff)
downloadaerogramme-46145350eb0e3bae8ca935d0f0f23eb1d40e6f58.tar.gz
aerogramme-46145350eb0e3bae8ca935d0f0f23eb1d40e6f58.zip
Implement some crypto
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index e9d506c..8880183 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,6 @@ Operations:
- **Initialize**(`password`):
- if `"salt"` or `"public"` already exist, BAIL
- generate salt `S` (32 random bytes)
- - write `S` at `"salt"`
- generate `public`, `private` (curve25519 keypair)
- generate `master` (secretbox secret key)
- calculate `digest = argon2_S(password)`
@@ -77,6 +76,7 @@ Operations:
- calculate `key = argon2_Skey(password)`
- serialize `box_contents = (private, master)`
- seal box `blob = seal_key(box_contents)`
+ - write `S` at `"salt"`
- write `concat(Skey, blob)` at `"password:{hex(digest[..16])}"`
- write `public` at `"public"`