Lines Matching refs:tag
39 /* need at least 3 bytes for tag, length and integer encoding */
158 /* need at least 3 bytes for tag, length and OID encoding */
180 * asn1_encode_length() - encode a length to follow an ASN.1 tag
186 * It will accept a negative length and place a zero length tag
244 * asn1_encode_tag() - add a tag for optional or explicit value
245 * @data: pointer to place tag at
247 * @tag: tag to be placed
253 * Standard usage is to pass in a @tag, @string and @length and the
254 * @string will be ASN.1 encoded with @tag and placed into @data. If
262 * the place where the tag contents should be placed is returned. The
271 u32 tag, const unsigned char *string, int len)
276 if (WARN(tag > 30, "ASN.1 tag can't be > 30"))
280 "BUG: recode tag is too big (>127)"))
289 * tag and install a dummy length because the real
299 *(data++) = _tagn(CONT, CONS, tag);
338 /* need minimum of 2 bytes for tag and length of zero length string */
434 /* booleans are 3 bytes: tag, length == 1 and value == 0 or 1 */