YAARX: Yet Another ARX Toolkit
0.1
|
#include <common.hh>
Public Member Functions | |
bool | operator() (differential_t a, differential_t b) |
Compare two differentials a,b by the magnitute of the indexes a_idx, b_idx: lower indices are listed first. For example, the indices of the differentials a(dx,dy,p) and b(dx,dy,p) are a_idx = (a.dx 2^{n} + a.dy) = (a.dx | a.dy) and b_idx = (b.dx 2^{n} + b.dy) = (b.dx | b.dy) where n is the word size and '|' denotes concatenation. Thus a_idx and b_idx are compared.