Lines Matching refs:sr
97 isc_region_t sr;
109 dns_rdata_toregion(rdata, &sr);
111 hash = uint8_fromregion(&sr);
112 isc_region_consume(&sr, 1);
114 flags = uint8_fromregion(&sr);
115 isc_region_consume(&sr, 1);
117 iterations = uint16_fromregion(&sr);
118 isc_region_consume(&sr, 2);
129 j = uint8_fromregion(&sr);
130 isc_region_consume(&sr, 1);
131 INSIST(j <= sr.length);
134 i = sr.length;
135 sr.length = j;
136 RETERR(isc_hex_totext(&sr, 1, "", target));
137 sr.length = i - j;
146 isc_region_t sr, rr;
156 isc_buffer_activeregion(source, &sr);
157 rr = sr;
160 if (sr.length < 5U)
162 saltlen = sr.base[4];
163 isc_region_consume(&sr, 5);
165 if (sr.length < saltlen)
167 isc_region_consume(&sr, saltlen);
175 isc_region_t sr;
182 dns_rdata_toregion(rdata, &sr);
183 return (mem_tobuffer(target, sr.base, sr.length));