The flag CRYPTO_ALG_INTERNAL is not meant to be used outside of the Crypto API. It isn't needed here anyway.
Unified · Split
| @@ -205,7 +205,7 @@ static int __init test_ecdh(void) · 204 unmodified lines | |||
| 205 | 205 | ||
| 206 | calltime = ktime_get(); | 206 | calltime = ktime_get(); |
| 207 | 207 | ||
| 208 | tfm = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); | 208 | tfm = crypto_alloc_kpp("ecdh", 0, 0); |
| 209 | if (IS_ERR(tfm)) { | 209 | if (IS_ERR(tfm)) { |
| 210 | BT_ERR("Unable to create ECDH crypto context"); | 210 | BT_ERR("Unable to create ECDH crypto context"); |
| 211 | err = PTR_ERR(tfm); | 211 | err = PTR_ERR(tfm); |
| @@ -1391,7 +1391,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn) · 1390 unmodified lines | |||
| 1391 | goto zfree_smp; | 1391 | goto zfree_smp; |
| 1392 | } | 1392 | } |
| 1393 | 1393 | ||
| 1394 | smp->tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); | 1394 | smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); |
| 1395 | if (IS_ERR(smp->tfm_ecdh)) { | 1395 | if (IS_ERR(smp->tfm_ecdh)) { |
| 1396 | BT_ERR("Unable to create ECDH crypto context"); | 1396 | BT_ERR("Unable to create ECDH crypto context"); |
| 1397 | goto free_shash; | 1397 | goto free_shash; |
| @@ -3286,7 +3286,7 @@ static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid) · 1888 unmodified lines | |||
| 3286 | return ERR_CAST(tfm_cmac); | 3286 | return ERR_CAST(tfm_cmac); |
| 3287 | } | 3287 | } |
| 3288 | 3288 | ||
| 3289 | tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); | 3289 | tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); |
| 3290 | if (IS_ERR(tfm_ecdh)) { | 3290 | if (IS_ERR(tfm_ecdh)) { |
| 3291 | BT_ERR("Unable to create ECDH crypto context"); | 3291 | BT_ERR("Unable to create ECDH crypto context"); |
| 3292 | crypto_free_shash(tfm_cmac); | 3292 | crypto_free_shash(tfm_cmac); |
| @@ -3851,7 +3851,7 @@ int __init bt_selftest_smp(void) · 558 unmodified lines | |||
| 3851 | return PTR_ERR(tfm_cmac); | 3851 | return PTR_ERR(tfm_cmac); |
| 3852 | } | 3852 | } |
| 3853 | 3853 | ||
| 3854 | tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); | 3854 | tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); |
| 3855 | if (IS_ERR(tfm_ecdh)) { | 3855 | if (IS_ERR(tfm_ecdh)) { |
| 3856 | BT_ERR("Unable to create ECDH crypto context"); | 3856 | BT_ERR("Unable to create ECDH crypto context"); |
| 3857 | crypto_free_shash(tfm_cmac); | 3857 | crypto_free_shash(tfm_cmac); |