Lines Matching refs:TMP
7 TMP="$me.tmp"
18 ${FUTILITY} gbb_utility -c 16,0x10,16,0x10 ${TMP}.blob
21 ${FUTILITY} gbb_utility -s --flags=0xdeadbeef ${TMP}.blob
22 ${FUTILITY} gbb_utility -g --flags ${TMP}.blob | grep -i 0xdeadbeef
25 if ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDEF" ${TMP}.blob; then
29 ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDE" ${TMP}.blob
31 ${FUTILITY} gbb_utility -g ${TMP}.blob | grep "0123456789ABCDE"
36 dd if=/dev/urandom bs=17 count=1 of=${TMP}.data1.toolong
37 dd if=/dev/urandom bs=17 count=1 of=${TMP}.data2.toolong
38 dd if=/dev/urandom bs=17 count=1 of=${TMP}.data3.toolong
39 if ${FUTILITY} gbb_utility -s --rootkey ${TMP}.data1.toolong ${TMP}.blob; then false; fi
40 if ${FUTILITY} gbb_utility -s --recoverykey ${TMP}.data2.toolong ${TMP}.blob; then false; fi
41 if ${FUTILITY} gbb_utility -s --bmpfv ${TMP}.data3.toolong ${TMP}.blob; then false; fi
44 dd if=/dev/urandom bs=10 count=1 of=${TMP}.data1.short
45 dd if=/dev/urandom bs=10 count=1 of=${TMP}.data2.short
46 dd if=/dev/urandom bs=10 count=1 of=${TMP}.data3.short
48 --rootkey ${TMP}.data1.short \
49 --recoverykey ${TMP}.data2.short \
50 --bmpfv ${TMP}.data3.short ${TMP}.blob
53 --rootkey ${TMP}.read1 \
54 --recoverykey ${TMP}.read2 \
55 --bmpfv ${TMP}.read3 ${TMP}.blob
57 cmp -n 10 ${TMP}.data1.short ${TMP}.read1
58 cmp -n 10 ${TMP}.data2.short ${TMP}.read2
59 cmp -n 10 ${TMP}.data3.short ${TMP}.read3
62 dd if=/dev/urandom bs=16 count=1 of=${TMP}.data1
63 dd if=/dev/urandom bs=16 count=1 of=${TMP}.data2
64 dd if=/dev/urandom bs=16 count=1 of=${TMP}.data3
65 ${FUTILITY} gbb_utility -s --rootkey ${TMP}.data1 ${TMP}.blob
66 ${FUTILITY} gbb_utility -s --recoverykey ${TMP}.data2 ${TMP}.blob
67 ${FUTILITY} gbb_utility -s --bmpfv ${TMP}.data3 ${TMP}.blob
70 ${FUTILITY} gbb_utility -g --rootkey ${TMP}.read1 ${TMP}.blob
71 ${FUTILITY} gbb_utility -g --recoverykey ${TMP}.read2 ${TMP}.blob
72 ${FUTILITY} gbb_utility -g --bmpfv ${TMP}.read3 ${TMP}.blob
74 cmp ${TMP}.data1 ${TMP}.read1
75 cmp ${TMP}.data2 ${TMP}.read2
76 cmp ${TMP}.data3 ${TMP}.read3
112 cat ${TMP}.blob | ${REPLACE} 0x4 2 > ${TMP}.blob.bad
113 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
116 cat ${TMP}.blob | ${REPLACE} 0x8 0x81 > ${TMP}.blob.bad
117 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
120 cat ${TMP}.blob | ${REPLACE} 0x8 0x7f > ${TMP}.blob.bad
121 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
124 cat ${TMP}.blob | ${REPLACE} 0x8f 0x41 > ${TMP}.blob.bad
125 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
128 cat ${TMP}.blob | ${REPLACE} 0x14 0x00 > ${TMP}.blob.ok
129 ${FUTILITY} gbb_utility ${TMP}.blob.ok
131 cat ${TMP}.blob | ${REPLACE} 0x14 0x01 | ${REPLACE} 0x80 0x00 > ${TMP}.blob.ok
132 ${FUTILITY} gbb_utility ${TMP}.blob.ok
135 cat ${TMP}.blob | ${REPLACE} 0x8f 0x41 > ${TMP}.blob.bad
136 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
139 cat ${TMP}.blob | ${REPLACE} 0x10 0x7f > ${TMP}.blob.bad
140 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
141 cat ${TMP}.blob | ${REPLACE} 0x10 0x00 > ${TMP}.blob.bad
142 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
145 cat ${TMP}.blob | ${REPLACE} 0x18 0x7f > ${TMP}.blob.bad
146 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
147 cat ${TMP}.blob | ${REPLACE} 0x18 0x00 > ${TMP}.blob.bad
148 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
151 cat ${TMP}.blob | ${REPLACE} 0x20 0x7f > ${TMP}.blob.bad
152 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
153 cat ${TMP}.blob | ${REPLACE} 0x20 0x00 > ${TMP}.blob.bad
154 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
157 cat ${TMP}.blob | ${REPLACE} 0x28 0x7f > ${TMP}.blob.bad
158 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
159 cat ${TMP}.blob | ${REPLACE} 0x28 0x00 > ${TMP}.blob.bad
160 if ${FUTILITY} gbb_utility ${TMP}.blob.bad; then false; fi
163 cat ${TMP}.blob | ${REPLACE} 0x14 0x40 > ${TMP}.blob.bad
164 ${FUTILITY} gbb_utility -g ${TMP}.blob.bad
165 cat ${TMP}.blob | ${REPLACE} 0x14 0x41 > ${TMP}.blob.bad
166 if ${FUTILITY} gbb_utility -g ${TMP}.blob.bad; then false; fi
169 cat ${TMP}.blob | ${REPLACE} 0x1c 0x30 > ${TMP}.blob.bad
170 ${FUTILITY} gbb_utility -g ${TMP}.blob.bad
171 cat ${TMP}.blob | ${REPLACE} 0x1c 0x31 > ${TMP}.blob.bad
172 if ${FUTILITY} gbb_utility -g ${TMP}.blob.bad; then false; fi
175 cat ${TMP}.blob | ${REPLACE} 0x24 0x20 > ${TMP}.blob.bad
176 ${FUTILITY} gbb_utility -g ${TMP}.blob.bad
177 cat ${TMP}.blob | ${REPLACE} 0x24 0x21 > ${TMP}.blob.bad
178 if ${FUTILITY} gbb_utility -g ${TMP}.blob.bad; then false; fi
181 cat ${TMP}.blob | ${REPLACE} 0x2c 0x10 > ${TMP}.blob.bad
182 ${FUTILITY} gbb_utility -g ${TMP}.blob.bad
183 cat ${TMP}.blob | ${REPLACE} 0x2c 0x11 > ${TMP}.blob.bad
184 if ${FUTILITY} gbb_utility -g ${TMP}.blob.bad; then false; fi
187 cat ${TMP}.blob | ${REPLACE} 0x14 0x00 > ${TMP}.blob.bad
188 ${FUTILITY} gbb_utility -g ${TMP}.blob.bad
189 if ${FUTILITY} gbb_utility -s --hwid="A" ${TMP}.blob.bad; then false; fi
192 cat ${TMP}.blob | ${REPLACE} 0x1c 0x00 > ${TMP}.blob.bad
193 ${FUTILITY} gbb_utility -g --rootkey ${TMP}.read1 ${TMP}.blob.bad
194 if ${FUTILITY} gbb_utility -s --rootkey ${TMP}.data1 ${TMP}.blob.bad; then false; fi
197 cat ${TMP}.blob | ${REPLACE} 0x24 0x00 > ${TMP}.blob.bad
198 ${FUTILITY} gbb_utility -g --bmpfv ${TMP}.read3 ${TMP}.blob.bad
199 if ${FUTILITY} gbb_utility -s --bmpfv ${TMP}.data3 ${TMP}.blob.bad; then false; fi
202 cat ${TMP}.blob | ${REPLACE} 0x2c 0x00 > ${TMP}.blob.bad
203 ${FUTILITY} gbb_utility -g --recoverykey ${TMP}.read2 ${TMP}.blob.bad
204 if ${FUTILITY} gbb_utility -s --recoverykey ${TMP}.data2 ${TMP}.blob.bad; then false; fi
218 ${FUTILITY} gbb_utility -s --hwid=${hwid} ${TMP}.blob
221 ${FUTILITY} gbb_utility -g --digest ${TMP}.blob | grep ${expect}
225 cat ${TMP}.blob | ${REPLACE} 0x33 0x00 0x00 0x00 0x00 0x00 > ${TMP}.blob.bad
226 ${FUTILITY} gbb_utility -g --digest ${TMP}.blob.bad | grep '0000000000'
227 ${FUTILITY} gbb_utility -g --digest ${TMP}.blob.bad | grep 'invalid'
230 cat ${TMP}.blob | ${REPLACE} 0x84 0x70 0x71 0x72 > ${TMP}.blob.bad
231 ${FUTILITY} gbb_utility -g --digest ${TMP}.blob.bad | grep 'invalid'
234 rm -f ${TMP}*