g10: fix cmp_public_key and cmp_secret_keys.