Lines Matching refs:sr

138 	isc_region_t sr;
151 dns_rdata_toregion(rdata, &sr);
153 hash = uint8_fromregion(&sr);
154 isc_region_consume(&sr, 1);
156 flags = uint8_fromregion(&sr);
157 isc_region_consume(&sr, 1);
159 iterations = uint16_fromregion(&sr);
160 isc_region_consume(&sr, 2);
171 j = uint8_fromregion(&sr);
172 isc_region_consume(&sr, 1);
173 INSIST(j <= sr.length);
176 i = sr.length;
177 sr.length = j;
178 RETERR(isc_hex_totext(&sr, 1, "", target));
179 sr.length = i - j;
184 j = uint8_fromregion(&sr);
185 isc_region_consume(&sr, 1);
186 INSIST(j <= sr.length);
188 i = sr.length;
189 sr.length = j;
190 RETERR(isc_base32hex_totext(&sr, 1, "", target));
191 sr.length = i - j;
193 for (i = 0; i < sr.length; i += len) {
194 INSIST(i + 2 <= sr.length);
195 window = sr.base[i];
196 len = sr.base[i + 1];
199 INSIST(i + len <= sr.length);
202 if (sr.base[i + j] == 0)
205 if ((sr.base[i + j] & (0x80 >> k)) == 0)
224 isc_region_t sr, rr;
238 isc_buffer_activeregion(source, &sr);
239 rr = sr;
242 if (sr.length < 5U)
244 saltlen = sr.base[4];
245 isc_region_consume(&sr, 5);
247 if (sr.length < saltlen)
249 isc_region_consume(&sr, saltlen);
251 if (sr.length < 1U)
253 hashlen = sr.base[0];
254 isc_region_consume(&sr, 1);
256 if (sr.length < hashlen)
258 isc_region_consume(&sr, hashlen);
260 for (i = 0; i < sr.length; i += len) {
264 if (i + 2 > sr.length)
266 window = sr.base[i];
267 len = sr.base[i + 1];
282 if (i + len > sr.length)
287 if (sr.base[i + len - 1] == 0)
292 if (i != sr.length)
301 isc_region_t sr;
308 dns_rdata_toregion(rdata, &sr);
309 return (mem_tobuffer(target, sr.base, sr.length));