• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/wpa_supplicant-0.7.3/src/tls/

Lines Matching refs:hdr

27 	struct asn1_hdr hdr;
36 if (asn1_get_next(buf, len, &hdr) < 0 ||
37 hdr.class != ASN1_CLASS_UNIVERSAL ||
38 hdr.tag != ASN1_TAG_SEQUENCE) {
43 pos = hdr.payload;
44 end = pos + hdr.length;
47 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
48 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) {
51 hdr.class, hdr.tag);
59 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) {
64 pos = hdr.payload + hdr.length;
77 if (asn1_get_next(pos, len, &hdr) < 0 ||
78 hdr.class != ASN1_CLASS_UNIVERSAL ||
79 hdr.tag != ASN1_TAG_SEQUENCE) {
83 hdr.class, hdr.tag);
87 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) {
109 pos = hdr.payload + hdr.length;
112 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
113 hdr.class != ASN1_CLASS_UNIVERSAL ||
114 hdr.tag != ASN1_TAG_OCTETSTRING) {
117 hdr.class, hdr.tag);
123 crypto_rsa_import_private_key(hdr.payload, hdr.length);
130 struct asn1_hdr hdr;
148 if (asn1_get_next(buf, len, &hdr) < 0 ||
149 hdr.class != ASN1_CLASS_UNIVERSAL ||
150 hdr.tag != ASN1_TAG_SEQUENCE) {
156 pos = hdr.payload;
157 end = pos + hdr.length;
160 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
161 hdr.class != ASN1_CLASS_UNIVERSAL ||
162 hdr.tag != ASN1_TAG_SEQUENCE) {
166 hdr.class, hdr.tag);
169 enc_alg = hdr.payload;
170 enc_alg_len = hdr.length;
171 pos = hdr.payload + hdr.length;
174 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
175 hdr.class != ASN1_CLASS_UNIVERSAL ||
176 hdr.tag != ASN1_TAG_OCTETSTRING) {
179 hdr.class, hdr.tag);
183 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length,