+ case OPENPGP_HASH_RIPEMD160:
+#ifdef NETTLE_WITH_RIPEMD160
+ ripemd160_init(&ripemd160_context);
+ for (i = 0; i < chunks; i++) {
+ ripemd160_update(&ripemd160_context, hashlen[i],
+ hashdata[i]);
+ }
+ ripemd160_digest(&ripemd160_context, RIPEMD160_DIGEST_SIZE,
+ hash);
+#else
+ logthing(LOGTHING_INFO, "RIPEMD160 support not available.");
+ return -1;
+#endif