YAARX: Yet Another ARX Toolkit
0.1
|
Header for tea-add-threshold-search.cc. More...
Go to the source code of this file.
Functions | |
uint32_t | tea_add_threshold_count_lp (differential_t trail[NROUNDS], uint32_t trail_len, double p_thres) |
uint32_t | tea_add_trail_search (uint32_t key[4], double B[NROUNDS], differential_t trail[NROUNDS]) |
uint32_t | tea_add_trail_search_full (uint32_t key[4], double BB[NROUNDS], differential_t trail[NROUNDS], uint32_t num_rounds) |
Header for tea-add-threshold-search.cc.
uint32_t tea_add_threshold_count_lp | ( | differential_t | trail[NROUNDS], |
uint32_t | trail_len, | ||
double | p_thres | ||
) |
Count the number of differentials in a trail
that have probabilities below a given threshold.
trail | a differential trail for trail_len rounds. |
trail_len | length of the differential trail. |
p_thres | probability threshold. |
uint32_t tea_add_trail_search | ( | uint32_t | key[4], |
double | B[NROUNDS], | ||
differential_t | trail[NROUNDS] | ||
) |
Search for ADD differential trails in block cipher TEA: wrapper function for tea_add_threshold_search.
key | cryptographic key of TEA. |
B | array of bounds. |
trail | best found differential trail. |
Algorithm Outline:
The procedure operates as follows:
uint32_t tea_add_trail_search_full | ( | uint32_t | key[4], |
double | BB[NROUNDS], | ||
differential_t | trail[NROUNDS], | ||
uint32_t | num_rounds | ||
) |
Full threshold search using bounds pre-computed with tea_add_trail_search ; basically a wrapper function for tea_add_threshold_search_full .
key | cryptographic key of TEA. |
BB | array of bounds. |
trail | best found differential trail. |
The function takes as input an array of initial bounds B
and the corresponding best found trail, computed with a prior call to tea_add_trail_search
and outputs a trail that is at least as good as the niput.