Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2017 06:10:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-geom@FreeBSD.org
Subject:   [Bug 218512] Geli arbitrarily prevents setting passphrases
Message-ID:  <bug-218512-14739-syT2tVQgZ6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-218512-14739@https.bugs.freebsd.org/bugzilla/>
References:  <bug-218512-14739@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218512

--- Comment #15 from Alexander Motin <mav@FreeBSD.org> ---
Changing passphrase without -i should not change number of iterations, so there
should be no problem:

        /*
         * Field md_iterations equal to -1 means "choose some sane
         * value for me".
         */
        if (md->md_iterations == -1) {
                assert(new);
                if (verbose)
                        printf("Calculating number of iterations...\n");
                md->md_iterations = pkcs5v2_calculate(2000000);
                assert(md->md_iterations > 0);
                if (verbose) {
                        printf("Done, using %d iterations.\n",
                            md->md_iterations);
                }
        }

If md_iterations was ever set, the same value should be used for that disk
forever.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218512-14739-syT2tVQgZ6>