Lines Matching refs:hdr
205 struct asn1_hdr hdr;
234 if (asn1_get_next(decrypted, decrypted_len, &hdr) < 0 ||
235 hdr.class != ASN1_CLASS_UNIVERSAL ||
236 hdr.tag != ASN1_TAG_SEQUENCE) {
239 hdr.class, hdr.tag);
244 pos = hdr.payload;
245 end = pos + hdr.length;
255 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
256 hdr.class != ASN1_CLASS_UNIVERSAL ||
257 hdr.tag != ASN1_TAG_SEQUENCE) {
260 hdr.class, hdr.tag);
264 da_end = hdr.payload + hdr.length;
266 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &next)) {
288 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
289 hdr.class != ASN1_CLASS_UNIVERSAL ||
290 hdr.tag != ASN1_TAG_OCTETSTRING) {
293 hdr.class, hdr.tag);
298 hdr.payload, hdr.length);
300 if (hdr.length != hash_len ||
301 os_memcmp_const(hdr.payload, hash, hdr.length) != 0) {
309 if (hdr.payload + hdr.length != end) {
314 hdr.payload + hdr.length,
315 end - hdr.payload - hdr.length);