Lines Matching defs:hdr

21 	struct asn1_hdr hdr;
30 if (asn1_get_next(buf, len, &hdr) < 0 ||
31 hdr.class != ASN1_CLASS_UNIVERSAL ||
32 hdr.tag != ASN1_TAG_SEQUENCE) {
37 pos = hdr.payload;
38 end = pos + hdr.length;
41 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
42 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) {
45 hdr.class, hdr.tag);
53 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) {
58 pos = hdr.payload + hdr.length;
71 if (asn1_get_next(pos, len, &hdr) < 0 ||
72 hdr.class != ASN1_CLASS_UNIVERSAL ||
73 hdr.tag != ASN1_TAG_SEQUENCE) {
77 hdr.class, hdr.tag);
81 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) {
103 pos = hdr.payload + hdr.length;
106 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
107 hdr.class != ASN1_CLASS_UNIVERSAL ||
108 hdr.tag != ASN1_TAG_OCTETSTRING) {
111 hdr.class, hdr.tag);
117 crypto_rsa_import_private_key(hdr.payload, hdr.length);
124 struct asn1_hdr hdr;
142 if (asn1_get_next(buf, len, &hdr) < 0 ||
143 hdr.class != ASN1_CLASS_UNIVERSAL ||
144 hdr.tag != ASN1_TAG_SEQUENCE) {
150 pos = hdr.payload;
151 end = pos + hdr.length;
154 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
155 hdr.class != ASN1_CLASS_UNIVERSAL ||
156 hdr.tag != ASN1_TAG_SEQUENCE) {
160 hdr.class, hdr.tag);
163 enc_alg = hdr.payload;
164 enc_alg_len = hdr.length;
165 pos = hdr.payload + hdr.length;
168 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
169 hdr.class != ASN1_CLASS_UNIVERSAL ||
170 hdr.tag != ASN1_TAG_OCTETSTRING) {
173 hdr.class, hdr.tag);
177 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length,