Lines Matching refs:valuelen
339 static int asn1tag_write(u8 *ptr, u8 tag, const u8 *pvalue, u16 valuelen) in asn1tag_write() argument
342 if (valuelen > 255) { in asn1tag_write()
344 *((u16 *)(ptr + 2)) = valuelen; in asn1tag_write()
345 memcpy(ptr + 4, pvalue, valuelen); in asn1tag_write()
346 return 4 + valuelen; in asn1tag_write()
348 if (valuelen > 127) { in asn1tag_write()
350 ptr[2] = (u8) valuelen; in asn1tag_write()
351 memcpy(ptr + 3, pvalue, valuelen); in asn1tag_write()
352 return 3 + valuelen; in asn1tag_write()
354 ptr[1] = (u8) valuelen; in asn1tag_write()
355 memcpy(ptr + 2, pvalue, valuelen); in asn1tag_write()
356 return 2 + valuelen; in asn1tag_write()