| 429 | } |
| 430 | |
| 431 | void entropy_add_byte(uchar b) |
| 432 | { |
| 433 | static int next = 0; |
| 434 | |
| 435 | int r = entpool[next] & 7; |
| 436 | entpool[next++] ^= b << r | b >> (8 - r); |
| 437 | if(next >= ENTPOOLSIZE) next = 0; |
| 438 | } |
| 439 | |
| 440 | void entropy_add_block(const uchar *s, int len) |
| 441 | { |
no outgoing calls
no test coverage detected