Lines Matching full:arc
288 arc_encoded_length(unsigned long arc) in arc_encoded_length() argument
292 for (arc >>= 7; arc; arc >>= 7) in arc_encoded_length()
299 arc_encode(unsigned long arc, unsigned char **bufp) in arc_encode() argument
304 p = *bufp = *bufp + arc_encoded_length(arc); in arc_encode()
305 *--p = arc & 0x7f; in arc_encode()
306 for (arc >>= 7; arc; arc >>= 7) in arc_encode()
307 *--p = (arc & 0x7f) | 0x80; in arc_encode()
310 /* Fetch an arc value from *bufp and advance past it and any following spaces
311 * or periods. Return 1 on success, 0 if *bufp is not at a valid arc value. */
317 unsigned long arc = 0, newval; in get_arc() local
322 newval = arc * 10 + (*p - '0'); in get_arc()
323 if (newval < arc) in get_arc()
325 arc = newval; in get_arc()
330 *arc_out = arc; in get_arc()
335 * Convert a sequence of two or more decimal arc values into a DER-encoded OID.
338 * whitespace and trailing garbage is allowed. The first arc value must be 0,
349 unsigned long arc, arc1, arc2; in generic_gss_str_to_oid() local
378 /* Get the first two arc values, to be encoded as one subidentifier. */ in generic_gss_str_to_oid()
387 while (get_arc(&p, end, &arc)) in generic_gss_str_to_oid()
388 nbytes += arc_encoded_length(arc); in generic_gss_str_to_oid()
406 while (get_arc(&p, end, &arc)) in generic_gss_str_to_oid()
407 arc_encode(arc, &out); in generic_gss_str_to_oid()