Lines Matching refs:hdr
34 struct asn1_hdr hdr; in crypto_rsa_parse_integer() local
39 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in crypto_rsa_parse_integer()
40 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) { in crypto_rsa_parse_integer()
42 "tag 0x%x", hdr.class, hdr.tag); in crypto_rsa_parse_integer()
46 if (bignum_set_unsigned_bin(num, hdr.payload, hdr.length) < 0) { in crypto_rsa_parse_integer()
51 return hdr.payload + hdr.length; in crypto_rsa_parse_integer()
65 struct asn1_hdr hdr; in crypto_rsa_import_public_key() local
87 if (asn1_get_next(buf, len, &hdr) < 0 || in crypto_rsa_import_public_key()
88 hdr.class != ASN1_CLASS_UNIVERSAL || in crypto_rsa_import_public_key()
89 hdr.tag != ASN1_TAG_SEQUENCE) { in crypto_rsa_import_public_key()
92 hdr.class, hdr.tag); in crypto_rsa_import_public_key()
95 pos = hdr.payload; in crypto_rsa_import_public_key()
96 end = pos + hdr.length; in crypto_rsa_import_public_key()
153 struct asn1_hdr hdr; in crypto_rsa_import_private_key() local
194 if (asn1_get_next(buf, len, &hdr) < 0 || in crypto_rsa_import_private_key()
195 hdr.class != ASN1_CLASS_UNIVERSAL || in crypto_rsa_import_private_key()
196 hdr.tag != ASN1_TAG_SEQUENCE) { in crypto_rsa_import_private_key()
199 hdr.class, hdr.tag); in crypto_rsa_import_private_key()
202 pos = hdr.payload; in crypto_rsa_import_private_key()
203 end = pos + hdr.length; in crypto_rsa_import_private_key()