unit-tests: Generate weak keys with gcrypt plugin (but quickly)