Lines Matching refs:len
7 size_t len;
10 int mbedtls_entropy_func( void *data, unsigned char *buf, size_t len )
14 if( len > ctx->len )
17 memcpy( buf, ctx->p, len );
19 ctx->p += len;
20 ctx->len -= len;
45 entropy.len = sizeof( buf );
52 last_len = entropy.len;
55 TEST_ASSERT( entropy.len < last_len );
59 last_len = entropy.len;
66 TEST_ASSERT( entropy.len == last_len );
78 TEST_ASSERT( entropy.len < last_len );
81 last_len = entropy.len;
88 TEST_ASSERT( entropy.len == last_len );
93 TEST_ASSERT( entropy.len < last_len );
97 last_len = entropy.len;
99 TEST_ASSERT( (int) last_len - entropy.len == 42 );
102 last_len = entropy.len;
104 TEST_ASSERT( (int) last_len - entropy.len == 13 );
187 p_entropy.len = unhexify( entropy, entropy_hex );
194 memcpy( data, entropy, p_entropy.len );
195 memcpy( data + p_entropy.len, custom, custom_len );
197 data, p_entropy.len + custom_len ) == 0 );
248 p_entropy.len = unhexify( entropy, entropy_hex );
293 p_entropy.len = unhexify( entropy, entropy_hex );