-rw-r--r-- 300 cryptattacktester-20231020/bruteforce_cost.cpp raw
#include "bruteforce_cost.h" using namespace std; bigint bruteforce_cost(const vector<bigint> ¶ms,const vector<bigint> &attackparams) { bigint n = params.at(0); bigint k = params.at(1); bigint w = params.at(2); bigint iters = attackparams.at(0); return iters*((n-k)*w+(n-k)*2+n+w); }