Lines Matching refs:buf
318 static inline uint8_t *encode_tag_length(uint8_t *buf, uint8_t tag, in encode_tag_length() argument
321 *buf++ = tag; in encode_tag_length()
324 buf[0] = len; in encode_tag_length()
325 return buf + 1; in encode_tag_length()
329 buf[0] = 0x81; in encode_tag_length()
330 buf[1] = len; in encode_tag_length()
331 return buf + 2; in encode_tag_length()
334 buf[0] = 0x82; in encode_tag_length()
335 put_unaligned_be16(len, buf + 1); in encode_tag_length()
336 return buf + 3; in encode_tag_length()
339 static uint32_t derive_pub_key(const void *pub_key, uint32_t len, uint8_t *buf) in derive_pub_key() argument
341 uint8_t *cur = buf; in derive_pub_key()
359 return cur - buf; in derive_pub_key()