Lines Matching refs:len
52 unsigned int len; in asn1_start() local
56 if ( cursor->len < 2 /* Tag byte and first length byte */ ) { in asn1_start()
57 if ( cursor->len ) in asn1_start()
71 cursor->len--; in asn1_start()
78 cursor->len--; in asn1_start()
82 if ( cursor->len < len_len ) { in asn1_start()
84 "%zd)\n", cursor, len_len, cursor->len ); in asn1_start()
90 for ( len = 0 ; len_len ; len_len-- ) { in asn1_start()
91 len <<= 8; in asn1_start()
92 len |= *( ( uint8_t * ) cursor->data ); in asn1_start()
94 cursor->len--; in asn1_start()
96 if ( cursor->len < len ) { in asn1_start()
98 cursor, len, cursor->len ); in asn1_start()
103 return len; in asn1_start()
107 cursor->len = 0; in asn1_start()
123 int len; in asn1_enter() local
125 len = asn1_start ( cursor, type ); in asn1_enter()
126 if ( len < 0 ) in asn1_enter()
127 return len; in asn1_enter()
129 cursor->len = len; in asn1_enter()
131 cursor, type, len ); in asn1_enter()
148 int len; in asn1_skip() local
150 len = asn1_start ( cursor, type ); in asn1_skip()
151 if ( len < 0 ) in asn1_skip()
152 return len; in asn1_skip()
154 cursor->data += len; in asn1_skip()
155 cursor->len -= len; in asn1_skip()
157 cursor, type, len ); in asn1_skip()
159 if ( ! cursor->len ) { in asn1_skip()