[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#723729: partman-crypto: LUKS master key is read from /dev/urandom



On Thu, Sep 19, 2013 at 6:57 PM, Christian PERRIER <bubulle@debian.org> wrote:
> Quoting Thiemo Nagel (thiemo.nagel@gmail.com):
>
>> 2. In case the job doesn't return within a couple of seconds, instruct
>>    the user to a) either press keys until enough entropy has been
>>    gathered or b) select "Cancel" and continue in unsafe manner. If the
>
>
> Don't we have such things?
>
> I'm sure I translated screens where users are prompted to type keys,
> move the mouse and do other stuff in order to generate entropy.

I faintly remember something like that, too. But I can't see it in the
code. Have a look at (what I believe to be) the relevant snippet in
setup_luks() from crypto-base.sh:

    log-output -t partman-crypto \
    /sbin/cryptsetup -c $cipher-$iv -s $size luksFormat $device $pass
    if [ $? -ne 0 ]; then
        log "luksFormat failed"
        return 2
    fi


Reply to: