Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_entropy.h File Reference

Randomness/entropy metrics for byte samples (token-randomness analysis) More...

#include <stddef.h>
+ Include dependency graph for n_entropy.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double n_entropy_chi_square (const unsigned char *data, size_t len)
 Chi-square statistic of the byte histogram against a uniform distribution over 256 values.
 
double n_entropy_monobit (const unsigned char *data, size_t len)
 Fraction of set bits in the sample (0.0 .
 
double n_entropy_shannon (const unsigned char *data, size_t len)
 Shannon entropy of the byte sample, in bits per byte (0.0 .
 

Detailed Description

Randomness/entropy metrics for byte samples (token-randomness analysis)

Author
Castagnier Mickael
Version
1.0

Definition in file n_entropy.h.