Lines Matching refs:tail
611 static uint8_t *asn1_encode_length(size_t length, const uint8_t *head, uint8_t *tail)
613 if (!tail || tail < head + encoded_length_size(length)) {
619 *(--tail) = length;
623 uint8_t *orig_tail = tail;
625 *(--tail) = length & 0xFF;
631 length_len = (orig_tail - tail);
632 *(--tail) = 0x80 | length_len;
634 return tail;