Lines Matching +full:512 +full:- +full:bytes
11 atf_check -s exit:0 -e ignore \
12 geli init -B none -a $aalgo -e $ealgo -l $keylen -P \
13 -K keyfile -s $secsize ${md}
14 atf_check geli attach -p -k keyfile ${md}
20 atf_check dd if=backing_file of=sector bs=512 count=1 \
22 atf_check dd if=sector of=backing_file bs=512 count=1 seek=1 \
25 atf_check -s not-exit:0 -e ignore \
35 ms=`diskinfo /dev/${md} | awk '{print $3 - 512}'`
37 usecsize=`echo "($ms / $ns) - (($ms / $ns) % 512)" | bc`
38 atf_check dd if=backing_file bs=512 count=$(( ${usecsize} / 512 )) \
39 seek=$(( $secsize / 512 )) of=sector conv=notrunc status=none
40 atf_check dd of=backing_file bs=512 count=$(( ${usecsize} / 512 )) \
42 atf_check -s not-exit:0 -e ignore \
59 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
77 atf_check -s exit:0 -e ignore \
78 geli init -B none -a $aalgo -e $ealgo -l $keylen -P -K keyfile \
79 -s $secsize ${md}
81 # Corrupt 8 bytes of data.
82 atf_check dd if=/dev/${md} of=sector bs=512 count=1 status=none
84 atf_check dd if=sector of=/dev/${md} bs=512 count=1 status=none
85 atf_check geli attach -p -k keyfile ${md}
88 atf_check -s not-exit:0 -e ignore \
105 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
121 atf_check -s exit:0 -e ignore \
122 geli init -B none -a $aalgo -e $ealgo -l $keylen -P -K keyfile \
123 -s $secsize ${md}
125 # Corrupt 8 bytes of HMAC.
126 atf_check dd if=/dev/${md} of=sector bs=512 count=1 status=none
128 atf_check dd if=sector of=/dev/${md} bs=512 count=1 status=none
129 atf_check geli attach -p -k keyfile ${md}
132 atf_check -s not-exit:0 -e ignore \
149 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none