• Home
  • Raw
  • Download

Lines Matching refs:ch

118 asn1_octet_decode(struct asn1_ctx *ctx, unsigned char *ch)  in asn1_octet_decode()  argument
124 *ch = *(ctx->pointer)++; in asn1_octet_decode()
132 unsigned char ch;
139 ch = *(ctx->pointer)++; /* ch has 0xa, ptr points to length octet */
140 if ((ch) == ASN1_ENUM) /* if ch value is ENUM, 0xa */
153 unsigned char ch; in asn1_tag_decode() local
158 if (!asn1_octet_decode(ctx, &ch)) in asn1_tag_decode()
161 *tag |= ch & 0x7F; in asn1_tag_decode()
162 } while ((ch & 0x80) == 0x80); in asn1_tag_decode()
170 unsigned char ch; in asn1_id_decode() local
172 if (!asn1_octet_decode(ctx, &ch)) in asn1_id_decode()
175 *cls = (ch & 0xC0) >> 6; in asn1_id_decode()
176 *con = (ch & 0x20) >> 5; in asn1_id_decode()
177 *tag = (ch & 0x1F); in asn1_id_decode()
189 unsigned char ch, cnt; in asn1_length_decode() local
191 if (!asn1_octet_decode(ctx, &ch)) in asn1_length_decode()
194 if (ch == 0x80) in asn1_length_decode()
199 if (ch < 0x80) in asn1_length_decode()
200 *len = ch; in asn1_length_decode()
202 cnt = (unsigned char) (ch & 0x7F); in asn1_length_decode()
206 if (!asn1_octet_decode(ctx, &ch)) in asn1_length_decode()
209 *len |= ch; in asn1_length_decode()
250 unsigned char ch; in asn1_eoc_decode() local
253 if (!asn1_octet_decode(ctx, &ch)) in asn1_eoc_decode()
256 if (ch != 0x00) { in asn1_eoc_decode()
261 if (!asn1_octet_decode(ctx, &ch)) in asn1_eoc_decode()
264 if (ch != 0x00) { in asn1_eoc_decode()
403 unsigned char ch; in asn1_subid_decode() local
408 if (!asn1_octet_decode(ctx, &ch)) in asn1_subid_decode()
412 *subid |= ch & 0x7F; in asn1_subid_decode()
413 } while ((ch & 0x80) == 0x80); in asn1_subid_decode()