Home | History | Annotate | Download | only in tls

Lines Matching refs:hdr

48 	struct asn1_hdr hdr;
81 if (asn1_get_next(pos, enc_alg_end - pos, &hdr) < 0 ||
82 hdr.class != ASN1_CLASS_UNIVERSAL ||
83 hdr.tag != ASN1_TAG_SEQUENCE) {
86 hdr.class, hdr.tag);
89 pos = hdr.payload;
90 end = hdr.payload + hdr.length;
93 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
94 hdr.class != ASN1_CLASS_UNIVERSAL ||
95 hdr.tag != ASN1_TAG_OCTETSTRING ||
96 hdr.length != 8) {
99 hdr.class, hdr.tag, hdr.length);
102 pos = hdr.payload + hdr.length;
103 os_memcpy(params->salt, hdr.payload, hdr.length);
104 params->salt_len = hdr.length;
109 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
110 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) {
112 "class %d tag 0x%x", hdr.class, hdr.tag);
115 if (hdr.length == 1)
116 params->iter_count = *hdr.payload;
117 else if (hdr.length == 2)
118 params->iter_count = WPA_GET_BE16(hdr.payload);
119 else if (hdr.length == 4)
120 params->iter_count = WPA_GET_BE32(hdr.payload);
124 hdr.payload, hdr.length);