.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "ARGON2-CALIBRATE 1p" .TH ARGON2-CALIBRATE 1p 2024-04-13 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME argon2\-calibrate \- a script to find the appropriate argon2 parameters .SH VERSION .IX Header "VERSION" version 0.022 .SH DESCRIPTION .IX Header "DESCRIPTION" This program implements the following procedure, as recommended by the argon2 authors: .ie n .IP "1. Select the type ""y"". If you do not know the difference between them, choose Argon2id." 4 .el .IP "1. Select the type \f(CWy\fR. If you do not know the difference between them, choose Argon2id." 4 .IX Item "1. Select the type y. If you do not know the difference between them, choose Argon2id." .PD 0 .ie n .IP "2. Figure out the maximum number of threads ""h"" that can be initiated by each call to Argon2. This is the ""parallelism"" argument." 4 .el .IP "2. Figure out the maximum number of threads \f(CWh\fR that can be initiated by each call to Argon2. This is the \f(CWparallelism\fR argument." 4 .IX Item "2. Figure out the maximum number of threads h that can be initiated by each call to Argon2. This is the parallelism argument." .ie n .IP "3. Figure out the maximum amount of memory ""m"" that each call can a afford." 4 .el .IP "3. Figure out the maximum amount of memory \f(CWm\fR that each call can a afford." 4 .IX Item "3. Figure out the maximum amount of memory m that each call can a afford." .ie n .IP "4. Figure out the maximum amount ""x"" of time (in seconds) that each call can a afford." 4 .el .IP "4. Figure out the maximum amount \f(CWx\fR of time (in seconds) that each call can a afford." 4 .IX Item "4. Figure out the maximum amount x of time (in seconds) that each call can a afford." .IP "5. Select the salt length. 16 bytes is suffient for all applications, but can be reduced to 8 bytes in the case of space constraints." 4 .IX Item "5. Select the salt length. 16 bytes is suffient for all applications, but can be reduced to 8 bytes in the case of space constraints." .IP "6. Select the tag (output) size. 16 bytes is suffient for most applications, including key derivation." 4 .IX Item "6. Select the tag (output) size. 16 bytes is suffient for most applications, including key derivation." .ie n .IP "7. Run the scheme of type ""y"", memory ""m"" and ""h"" lanes and threads, using different number of passes ""t"". Figure out the maximum ""t"" such that the running time does not exceed ""x"". If it exceeds ""x"" even for ""t = 1"", reduce ""m"" accordingly. If using Argon2i, t must be at least 3." 4 .el .IP "7. Run the scheme of type \f(CWy\fR, memory \f(CWm\fR and \f(CWh\fR lanes and threads, using different number of passes \f(CWt\fR. Figure out the maximum \f(CWt\fR such that the running time does not exceed \f(CWx\fR. If it exceeds \f(CWx\fR even for \f(CWt = 1\fR, reduce \f(CWm\fR accordingly. If using Argon2i, t must be at least 3." 4 .IX Item "7. Run the scheme of type y, memory m and h lanes and threads, using different number of passes t. Figure out the maximum t such that the running time does not exceed x. If it exceeds x even for t = 1, reduce m accordingly. If using Argon2i, t must be at least 3." .ie n .IP "8. Hash all the passwords with the just determined values ""m"", ""h"", and ""t""." 4 .el .IP "8. Hash all the passwords with the just determined values \f(CWm\fR, \f(CWh\fR, and \f(CWt\fR." 4 .IX Item "8. Hash all the passwords with the just determined values m, h, and t." .PD .SH AUTHOR .IX Header "AUTHOR" Leon Timmermans .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is Copyright (c) 2013 by Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, Samuel Neves, Thomas Pornin and Leon Timmermans. .PP This is free software, licensed under: .PP .Vb 1 \& The Apache License, Version 2.0, January 2004 .Ve