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