test/crypto: do not allocate extra memory for digest