Home | History | Annotate | Download | only in dropbear

Lines Matching full:len

178 /* return len bytes of pseudo-random data */
179 void genrandom(unsigned char* buf, unsigned int len) {
189 while (len > 0) {
200 copylen = MIN(len, SHA1_HASH_SIZE);
202 len -= copylen;
216 unsigned int len = 0;
221 len = size_bits / 8;
223 len += 1;
226 randbuf = (unsigned char*)m_malloc(len);
228 genrandom(randbuf, len);
233 bytes_to_mp(rand, randbuf, len);
238 m_burn(randbuf, len);