Standardize Argon2u parameters

This commit is contained in:
Fang 2018-08-15 01:08:16 +02:00
parent 3fc265a424
commit 8fc069eb79
2 changed files with 4 additions and 8 deletions

View File

@ -17,9 +17,8 @@
++ argon2u
|= [inp=byts out=@ud]
^- @
%. [inp (to-byts 'urbitkeygen')]
%- argon2:argon2:crypto
[out %u 0x13 1 1.024 10 *byts *byts]
%- (argon2-urbit:argon2:crypto out)
[inp (to-byts 'urbitkeygen')]
::
++ child-node-from-seed
|= [seed=byts met=meta pass=(unit @t)]

View File

@ -3693,12 +3693,9 @@
::
:: shorthands
::
++ argon2-minimal
(argon2 32 %id 0x13 1 8 1 *byts *byts)
::
::TODO discuss and standardize?
++ argon2-urbit
(argon2 64 %u 0x13 4 1.024 10 *byts *byts)
|= out=@ud
(argon2 out %u 0x13 4 512.000 1 *byts *byts)
::
:: argon2 proper
::