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

--- Comment #15 from Alexander Motin <m...@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.
_______________________________________________
freebsd-geom@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "freebsd-geom-unsubscr...@freebsd.org"

Reply via email to