app/crypto-perf: fix possible overflow