app/crypto-perf: fix packet length check