History

Bluetooth: Remove CRYPTO_ALG_INTERNAL flag

The flag CRYPTO_ALG_INTERNAL is not meant to be used outside of the Crypto API. It isn't needed here anyway.

Herbert Xu committed 6 years ago

Commit 075f7731 parent 79bf1182 files · +4 −4Browse files

Unified · Split

2 files
  1. net/bluetooth/selftest.c +1 −1
  2. net/bluetooth/smp.c +3 −3
net/bluetooth/selftest.c+1−1
@@ -205,7 +205,7 @@ static int __init test_ecdh(void) · 204 unmodified lines
205205
206206 calltime = ktime_get();
207207
208− tfm = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0);
208+ tfm = crypto_alloc_kpp("ecdh", 0, 0);
209209 if (IS_ERR(tfm)) {
210210 BT_ERR("Unable to create ECDH crypto context");
211211 err = PTR_ERR(tfm);
net/bluetooth/smp.c+3−3
@@ -1391,7 +1391,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn) · 1390 unmodified lines
13911391 goto zfree_smp;
13921392 }
13931393
1394− smp->tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0);
1394+ smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
13951395 if (IS_ERR(smp->tfm_ecdh)) {
13961396 BT_ERR("Unable to create ECDH crypto context");
13971397 goto free_shash;
@@ -3286,7 +3286,7 @@ static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid) · 1888 unmodified lines
32863286 return ERR_CAST(tfm_cmac);
32873287 }
32883288
3289− tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0);
3289+ tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
32903290 if (IS_ERR(tfm_ecdh)) {
32913291 BT_ERR("Unable to create ECDH crypto context");
32923292 crypto_free_shash(tfm_cmac);
@@ -3851,7 +3851,7 @@ int __init bt_selftest_smp(void) · 558 unmodified lines
38513851 return PTR_ERR(tfm_cmac);
38523852 }
38533853
3854− tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0);
3854+ tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
38553855 if (IS_ERR(tfm_ecdh)) {
38563856 BT_ERR("Unable to create ECDH crypto context");
38573857 crypto_free_shash(tfm_cmac);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t