Lines Matching defs:string
10 #include <linux/string.h>
248 * @string: the data to be tagged
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
259 * To encode in place pass a NULL @string and -1 for @len and the
267 * returned it and still NULL for @string but the real length in @len.
271 u32 tag, const unsigned char *string, int len)
279 if (!string && WARN(len > 127,
286 if (!string && len > 0) {
305 if (!string)
311 memcpy(data, string, len);
322 * @string: string to be encoded
323 * @len: length of string
330 const unsigned char *string, u32 len)
338 /* need minimum of 2 bytes for tag and length of zero length string */
352 memcpy(data, string, len);