~sircmpwn/himitsu-devel

secstore: increase default argon2id mem parameter v1 PROPOSED

Drew DeVault: 1
 secstore: increase default argon2id mem parameter

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/himitsu-devel/patches/50770/mbox | git am -3
Learn more about email & git

[PATCH] secstore: increase default argon2id mem parameter Export this patch

This was set dangerously low (12 MiB). 128 is still on the lower side
but it's a reasonable choice for an end-user application (so that we can
decrypt the master key on consumer hardware).

Signed-off-by: Drew DeVault <sir@cmpwn.com>
---
 secstore/secstore.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/secstore/secstore.ha b/secstore/secstore.ha
index 1612611..32d7853 100644
--- a/secstore/secstore.ha
+++ b/secstore/secstore.ha
@@ -20,7 +20,7 @@ use strconv;
use strings;
use uuid;

def KEY_MEM: u32 = 100000;
def KEY_MEM: u32 = 8192 * 128; // 128 MiB
def KEY_PASSES: u32 = 0;

type keyversion = enum u8 {
-- 
2.44.0
Disregard this patch; I misread the argon2 whitepaper.