Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0798219f authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Use drbd_crypto_is_hash() instead of an open coded check

parent e79e95db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1271,7 +1271,7 @@ static int drbd_nl_net_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp,
			goto fail;
		}

		if (crypto_tfm_alg_type(crypto_hash_tfm(tfm)) != CRYPTO_ALG_TYPE_SHASH) {
		if (!drbd_crypto_is_hash(crypto_hash_tfm(tfm))) {
			retcode = ERR_AUTH_ALG_ND;
			goto fail;
		}