Lines Matching +full:1 +full:- +full:512

16 	attach_md md -t malloc -s `expr $sectors + 1`
18 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none
19 hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5`
21 atf_check dd if=/dev/random of=keyfile1 bs=512 count=16 status=none
22 atf_check dd if=/dev/random of=keyfile2 bs=512 count=16 status=none
23 atf_check dd if=/dev/random of=keyfile3 bs=512 count=16 status=none
24 atf_check dd if=/dev/random of=keyfile4 bs=512 count=16 status=none
25 atf_check dd if=/dev/random of=keyfile5 bs=512 count=16 status=none
27 atf_check geli init -B none -P -K keyfile1 ${md}
28 atf_check geli attach -p -k keyfile1 ${md}
31 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none
32 hash2=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
36 atf_check -s exit:0 -o ignore geli setkey -P -K keyfile2 ${md}
40 atf_check -s not-exit:0 -e match:"Wrong key" \
41 geli attach -p -k keyfile1 ${md}
44 atf_check geli attach -p -k keyfile2 ${md}
45 hash3=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
48 # Change key 1 for attached provider.
49 atf_check -s exit:0 -o ignore geli setkey -n 1 -P -K keyfile3 ${md}
52 # Attach with key 1.
53 atf_check geli attach -p -k keyfile3 ${md}
54 hash4=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
58 # Change current (1) key for detached provider.
59 atf_check -s exit:0 -o ignore geli setkey -p -k keyfile3 -P -K keyfile4 ${md}
62 atf_check -s not-exit:0 -e match:"Wrong key" \
63 geli attach -p -k keyfile3 ${md}
65 # Attach with key 1.
66 atf_check geli attach -p -k keyfile4 ${md}
67 hash5=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
72 atf_check -s exit:0 -o ignore geli setkey -n 0 -p -k keyfile4 -P -K keyfile5 ${md}
75 atf_check -s not-exit:0 -e match:"Wrong key" \
76 geli attach -p -k keyfile2 ${md} 2>/dev/null
79 atf_check geli attach -p -k keyfile5 ${md}
80 hash6=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
106 attach_md md -t malloc -s `expr $sectors + 1`
108 atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none
109 hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5`
111 atf_check dd if=/dev/random of=pass1 bs=512 count=1 status=none
112 atf_check dd if=/dev/random of=pass2 bs=512 count=1 status=none
113 atf_check dd if=/dev/random of=pass3 bs=512 count=1 status=none
115 atf_check geli init -B none -J pass1 ${md}
116 atf_check geli attach -j pass1 ${md}
119 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none
120 hash2=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
125 # Change from passphrase 1 to passphrase 2 for the detached provider.
126 atf_check -s exit:0 -o ignore geli setkey -j pass1 -J pass2 ${md}
129 # passphrase 1.
130 atf_check -s not-exit:0 -e match:"Wrong key" \
131 geli attach -j pass1 ${md}
132 atf_check -s exit:0 geli attach -j pass2 ${md}
133 hash3=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
136 atf_check -s exit:0 -o ignore geli setkey -j pass2 -J pass3 ${md}
137 hash4=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5`
141 atf_check -s not-exit:0 -e match:"Wrong key" \
142 geli attach -j pass2 ${md}
164 attach_md md -t malloc -s `expr $sectors + 1`
165 atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none
167 atf_check geli init -B none -P -K keyfile ${md}
168 atf_check geli attach -r -p -k keyfile ${md}
170 atf_check -s not-exit:0 -e match:"read-only" \
171 geli setkey -n 1 -P -K /dev/null ${md}
189 attach_md md -t malloc -s `expr $sectors + 1`
190 atf_check dd if=/dev/random of=keyfile1 bs=512 count=16 status=none
191 atf_check dd if=/dev/random of=keyfile2 bs=512 count=16 status=none
193 atf_check geli init -B none -P -K keyfile1 ${md}
197 atf_check -s not-exit:0 -e match:"No key components given" \
198 geli setkey -n 0 -p -P -K keyfile2 ${md}
202 atf_check -s not-exit:0 -e match:"No key components given" \
203 geli setkey -n 0 -p -k keyfile1 -P ${md}
206 atf_check geli attach -p -k keyfile1 ${md}
207 atf_check -s not-exit:0 -e match:"No key components given" \
208 geli setkey -n 0 -P ${md}