~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to src/utils/ecryptfs-setup-private

  • Committer: Dustin Kirkland
  • Date: 2015-02-10 19:10:36 UTC
  • Revision ID: dustin.kirkland@gmail.com-20150210191036-fyxktvcmuhbcl34z
* src/utils/ecryptfs-setup-private:
  - use /dev/urandom for our testing, as we read a lot of info

Show diffs side-by-side

added added

removed removed

Lines of Context:
440
440
printf "%s" "$MOUNTPASS" | ecryptfs-add-passphrase $FNEK -
441
441
/sbin/mount.ecryptfs_private || error "$(gettext 'Could not mount private ecryptfs directory')"
442
442
temp=`mktemp "$MOUNTPOINT/ecryptfs.test.XXXXXX"` || error_testing "$temp" "$(gettext 'Could not create empty file')"
443
 
random_data=`head -c 16000 /dev/random | od -x` || error_testing "$temp" "$(gettext 'Could not generate random data')"
 
443
random_data=`head -c 16000 /dev/urandom | od -x` || error_testing "$temp" "$(gettext 'Could not generate random data')"
444
444
echo "$random_data" > "$temp" || error_testing "$temp" "$(gettext 'Could not write encrypted file')"
445
445
md5sum1=`md5sum "$temp"` || error_testing "$temp" "$(gettext 'Could not read encrypted file')"
446
446
/sbin/umount.ecryptfs_private || error_testing "$temp" "$(gettext 'Could not unmount private ecryptfs directory')"