test/crypto: fix build with GCC 11