aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-20Bluetooth: SMP: Fix not generating mackey and ltk when repairingLuiz Augusto von Dentz1-24/+7
2025-07-23Bluetooth: Fix typos in commentsBastien Nocera1-1/+1
2025-07-16Bluetooth: SMP: Fix using HCI_ERROR_REMOTE_USER_TERM on timeoutLuiz Augusto von Dentz1-1/+1
2025-07-16Bluetooth: SMP: If an unallowed command is received consider it a failureLuiz Augusto von Dentz1-1/+18
2025-03-25Bluetooth: L2CAP: add TX timestampingPauli Virtanen1-1/+1
2025-03-25Bluetooth: SMP: convert timeouts to secs_to_jiffies()Easwar Hariharan1-1/+1
2024-08-30Revert "Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE"Luiz Augusto von Dentz1-7/+0
2024-08-15Bluetooth: SMP: Fix assumption of Central always being InitiatorLuiz Augusto von Dentz1-72/+72
2023-12-15Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LEXiao Yao1-0/+7
2023-09-15Bluetooth: Do not include crypto/algapi.hHerbert Xu1-2/+1
2023-04-23Bluetooth: L2CAP: Delay identity address updatesLuiz Augusto von Dentz1-1/+8
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-1/+1
2021-06-26Bluetooth: use inclusive language in HCI role commentsArchie Pusaka1-3/+3
2021-06-26Bluetooth: smp: Use the correct print formatKai Ye1-3/+3
2021-06-26Bluetooth: use inclusive language in SMPArchie Pusaka1-32/+34
2021-06-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+3
2021-06-14Bluetooth: SMP: Fix crash when receiving new connection when debug is enabledLuiz Augusto von Dentz1-3/+3
2021-06-02Bluetooth: Fix spelling mistakesZheng Yongjun1-3/+3
2021-04-29Merge tag 'net-next-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-49/+64
2021-04-02Bluetooth: SMP: Fix variable dereferenced before check 'conn'Luiz Augusto von Dentz1-2/+2
2021-03-23Bluetooth: Remove trailing semicolon in macrosMeng Yu1-2/+2
2021-03-15Bluetooth: SMP: Convert BT_ERR/BT_DBG to bt_dev_err/bt_dev_dbgLuiz Augusto von Dentz1-46/+52
2021-03-13crypto: ecdh - move curve_id of ECDH from the key to algorithm nameMeng Yu1-3/+3
2021-03-11Bluetooth: SMP: Fail if remote and local public keys are identicalLuiz Augusto von Dentz1-0/+9
2021-01-06Bluetooth: avoid u128_xor() on potentially misaligned inputsArd Biesheuvel1-3/+2
2020-11-09Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredrClaire Chang1-42/+2
2020-08-07mm, treewide: rename kzfree() to kfree_sensitive()Waiman Long1-12/+12
2020-07-31Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...David S. Miller1-4/+4
2020-07-31Bluetooth: Remove CRYPTO_ALG_INTERNAL flagHerbert Xu1-3/+3
2020-07-10Bluetooth: core: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-06-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-nextLinus Torvalds1-13/+32
2020-05-18Bluetooth: Fix for GAP/SEC/SEM/BI-10-CƁukasz Rymanowski1-0/+4
2020-05-11Bluetooth: Replace BT_DBG with bt_dev_dbg for security manager supportMarcel Holtmann1-4/+4
2020-05-08Bluetooth: use crypto_shash_tfm_digest()Eric Biggers1-5/+1
2020-04-08Bluetooth: Always request for user confirmation for Just Works (LE SC)Sonny Sasaka1-1/+4
2020-04-07Bluetooth: Simplify / fix return values from tk_requestGuenter Roeck1-5/+4
2020-04-07Bluetooth: debugfs option to unset MITM flagArchie Pusaka1-5/+10
2020-04-02Bluetooth: Always request for user confirmation for Just WorksSonny Sasaka1-2/+10
2020-02-19Bluetooth: fix passkey uninitialized when usedHoward Chung1-9/+11
2020-02-14Bluetooth: secure bluetooth stack from bluedump attackHoward Chung1-0/+19
2020-01-28Bluetooth: SMP: Fix SALT value in some commentsChristophe JAILLET1-2/+2
2020-01-25Bluetooth: Move {min,max}_key_size debugfs into hci_debugfs_create_leMarcel Holtmann1-93/+0
2020-01-15Bluetooth: Implementation of MGMT_OP_SET_BLOCKED_KEYS.Alain Michaud1-0/+18
2019-10-16Bluetooth: remove set but not used variable 'smp'YueHaibing1-6/+0
2019-07-26bluetooth: switch to AES libraryArd Biesheuvel1-72/+31
2019-07-06Bluetooth: Add SMP workaround Microsoft Surface Precision Mouse bugSzymon Janc1-0/+13
2019-04-25crypto: shash - remove shash_desc::flagsEric Biggers1-1/+0
2018-11-20crypto: drop mask=CRYPTO_ALG_ASYNC from 'shash' tfm allocationsEric Biggers1-1/+1
2018-11-20crypto: drop mask=CRYPTO_ALG_ASYNC from 'cipher' tfm allocationsEric Biggers1-3/+3
2018-10-24iov_iter: Separate type from direction and use accessor functionsDavid Howells1-1/+1
2018-10-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-4/+25
2018-09-28Bluetooth: Fix debugfs NULL pointer dereferenceMatias Karhumaa1-14/+9
2018-09-26Bluetooth: SMP: fix crash in unpairingMatias Karhumaa1-4/+25
2018-09-11Bluetooth: Use correct tfm to generate OOB dataMatias Karhumaa1-1/+7
2018-09-11Bluetooth: SMP: Fix trying to use non-existent local OOB dataJohan Hedberg1-2/+6
2018-05-30Bluetooth: Re-use kstrtobool_from_user()Andy Shevchenko1-8/+4
2018-03-01Bluetooth: Fix missing encryption refresh on Security RequestSzymon Janc1-1/+7
2017-10-30Bluetooth: Use bt_dev_err and bt_dev_info when possibleMarcel Holtmann1-11/+11
2017-10-06Bluetooth: let the crypto subsystem generate the ecc privkeyTudor Ambarus1-37/+29
2017-10-06Bluetooth: ecdh_helper - reveal error codesTudor Ambarus1-7/+10
2017-10-06Bluetooth: move ecdh allocation outside of ecdh_helperTudor Ambarus1-13/+55
2017-06-10Bluetooth: use constant time memory comparison for secret valuesJason A. Donenfeld1-19/+20
2017-04-30Bluetooth: Add selftest for ECDH key generationMarcel Holtmann1-0/+38
2017-04-25Bluetooth: convert smp and selftest to crypto kpp APISalvatore Benedetto1-4/+4
2016-12-08Bluetooth: SMP: Add support for H7 crypto function and CT2 auth flagJohan Hedberg1-17/+68
2016-09-19Bluetooth: Fix not registering BR/EDR SMP channel with force_bredr flagSzymon Janc1-1/+4
2016-07-08Bluetooth: Switch SMP to crypto_cipher_encrypt_one()Andy Lutomirski1-39/+28
2016-03-17Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-72/+63
2016-01-29Bluetooth: Fix incorrect removing of IRKsJohan Hedberg1-16/+0
2016-01-27Bluetooth: Use skcipher and hashHerbert Xu1-72/+63
2015-11-11Bluetooth: Fix l2cap_chan leak in SMPJohan Hedberg1-1/+6
2015-10-22Bluetooth: Fix crash in SMP when unpairingJohan Hedberg1-0/+26
2015-10-21Bluetooth: Remove redundant (and possibly wrong) flag clearingJohan Hedberg1-1/+0
2015-10-21Bluetooth: Don't use remote address type to decide IRK persistencyJohan Hedberg1-16/+17
2015-09-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-6/+6
2015-09-17Bluetooth: Fix typo in smp_ah comment for hash functionMarcel Holtmann1-1/+1
2015-09-17Bluetooth: Delay check for conn->smp in smp_conn_security()Johan Hedberg1-6/+6
2015-07-23Bluetooth: Fix NULL pointer dereference in smp_conn_securityJohan Hedberg1-0/+4
2015-06-12Bluetooth: Use actual encryption key size for SMP over BR/EDRJohan Hedberg1-2/+2
2015-06-12Bluetooth: Add debugfs support for min LE encryption key sizeJohan Hedberg1-1/+50
2015-06-12Bluetooth: Add debugfs support for max LE encryption key sizeJohan Hedberg1-4/+57
2015-06-10Bluetooth: Fix exposing full value of shortened LTKsJohan Hedberg1-1/+8
2015-06-09Bluetooth: Fix encryption key size handling for LTKsJohan Hedberg1-12/+3
2015-05-19Bluetooth: Add debug logs for legacy SMP crypto functionsJohan Hedberg1-4/+16
2015-04-02Bluetooth: Export SMP selftest result in debugfsMarcel Holtmann1-9/+34
2015-03-30Bluetooth: Refactor L2CAP variables into l2cap_ctrlJohan Hedberg1-1/+1
2015-03-18Bluetooth: Fix potential NULL dereference in SMP channel setupMarcel Holtmann1-3/+5
2015-03-17Bluetooth: Add workaround for broken OS X legacy SMP pairingJohan Hedberg1-8/+67
2015-03-16Bluetooth: Rename smp->local_rr into smp->local_randMarcel Holtmann1-5/+5
2015-03-16Bluetooth: Add extra SMP_DBG statement for remote OOB dataMarcel Holtmann1-0/+2
2015-03-16Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32]Marcel Holtmann1-1/+1
2015-03-16Bluetooth: Add clarifying comment when setting local OOB flagJohan Hedberg1-0/+8
2015-03-16Bluetooth: Don't send public key if OOB data verification failsJohan Hedberg1-10/+10
2015-03-16Bluetooth: Fix verifying confirm value when lacking remote OOB dataJohan Hedberg1-1/+3
2015-03-16Bluetooth: Set local OOB data flag if remote has our OOB dataJohan Hedberg1-0/+6
2015-03-16Bluetooth: Track local vs remote OOB data availabilityJohan Hedberg1-4/+6
2015-03-16Bluetooth: Fix local OOB data handling for SMPJohan Hedberg1-2/+5
2015-03-16Bluetooth: Use smp->local_pk + 32 instead of &smp->local_pk[32]Marcel Holtmann1-1/+1
2015-03-16Bluetooth: Use OOB key pair for LE SC pairing with OOB methodMarcel Holtmann1-0/+20
2015-03-16Bluetooth: Add function for generating LE SC out-of-band dataMarcel Holtmann1-0/+53
2015-03-16Bluetooth: Add support for AES-CMAC hash for security manager deviceMarcel Holtmann1-0/+14
2015-03-16Bluetooth: Create SMP device structure for local crypto contextMarcel Holtmann1-16/+31
2015-03-16Bluetooth: Use kzfree instead of kfree in security managerMarcel Holtmann1-8/+8
2015-03-13Bluetooth: Merge hdev->dbg_flags fields into hdev->dev_flagsMarcel Holtmann1-5/+5
2015-03-13Bluetooth: Introduce hci_dev_test_flag helper macroMarcel Holtmann1-22/+22
2015-03-12Bluetooth: Remove two else branches that are not neededMarcel Holtmann1-4/+4
2015-02-27Bluetooth: Update New CSRK event to match latest specificationJohan Hedberg1-2/+8
2015-02-20Bluetooth: Use hci_copy_identity_addr() helper for SMP chan creationJohan Hedberg1-17/+7
2015-01-31Bluetooth: Fix OOB data present value for SMP pairingMarcel Holtmann1-1/+1
2015-01-15Bluetooth: Add paranoid check for existing LE and BR/EDR SMP channelsMarcel Holtmann1-0/+12
2015-01-15Bluetooth: Don't register any SMP channel if LE is not supportedMarcel Holtmann1-0/+6
2015-01-15Bluetooth: Fix LE SMP channel source address and source address typeMarcel Holtmann1-4/+23
2015-01-14Bluetooth: Fix valid Identity Address checkJohan Hedberg1-1/+5
2015-01-14Bluetooth: Use %llu for printing duration details of selftestsMarcel Holtmann1-1/+1
2015-01-02Bluetooth: Fix for a leftover debug of pairing credentialsMarcel Holtmann1-1/+1
2015-01-02Bluetooth: Introduce force_bredr_smp debugfs option for testingMarcel Holtmann1-4/+74
2014-12-30Bluetooth: Add timing information to SMP test case runsMarcel Holtmann1-1/+9
2014-12-30Bluetooth: Add LE Secure Connections tests for SMPJohan Hedberg1-0/+186
2014-12-30Bluetooth: Add legacy SMP testsJohan Hedberg1-0/+95
2014-12-30Bluetooth: Add skeleton for SMP self-testsJohan Hedberg1-0/+39
2014-12-30Bluetooth: Fix const declarations for smp_f5 and smp_f6Johan Hedberg1-3/+4
2014-12-15Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...John W. Linville1-2/+3
2014-12-10Merge branch 'for-davem-2' of git://git.kernel.org/pub/scm/linux/kernel/git/v...David S. Miller1-4/+1
2014-12-09first fruits - kill l2cap ->memcpy_fromiovec()Al Viro1-3/+1
2014-12-09put iov_iter into msghdrAl Viro1-2/+1
2014-12-09Bluetooth: fix err_cast.cocci warningsFengguang Wu1-1/+1
2014-12-07Bluetooth: Check for force_lesc_support before rejecting SMP over BR/EDRMarcel Holtmann1-1/+2
2014-12-03Bluetooth: Fix false-positive "uninitialized" compiler warningJohan Hedberg1-10/+12
2014-12-03Bluetooth: Fix minor coding style issue in smp.cJohan Hedberg1-1/+1
2014-12-03Bluetooth: Fix SMP debug key handlingJohan Hedberg1-2/+13
2014-12-03Bluetooth: Organize SMP crypto functions to logical sectionsJohan Hedberg1-63/+71
2014-12-03Bluetooth: Fix missing const declarations in SMP functionsJohan Hedberg1-8/+10
2014-12-03Bluetooth: Introduce SMP_DBG macro for low-level debugingJohan Hedberg1-28/+40
2014-12-03Bluetooth: Add basic LE SC OOB support for remote OOB dataJohan Hedberg1-2/+36
2014-12-03Bluetooth: Set SMP OOB flag if OOB data is availableJohan Hedberg1-6/+25
2014-12-03Bluetooth: Add SC-only mode support for SMPJohan Hedberg1-0/+9
2014-12-03Bluetooth: Add full SMP BR/EDR supportJohan Hedberg1-22/+208
2014-12-03Bluetooth: Add skeleton for BR/EDR SMP channelJohan Hedberg1-18/+71
2014-12-03Bluetooth: Use debug keys for SMP when HCI_USE_DEBUG_KEYS is setJohan Hedberg1-9/+18
2014-12-03Bluetooth: Add dummy handler for LE SC keypress notificationJohan Hedberg1-0/+14
2014-12-03Bluetooth: Fix DHKey Check sending order for slave roleJohan Hedberg1-17/+43
2014-12-03Bluetooth: Add passkey entry support for LE SCJohan Hedberg1-11/+180
2014-12-03Bluetooth: Fix BR/EDR Link Key type when derived through LE SCJohan Hedberg1-3/+24
2014-12-03Bluetooth: Add support for SC just-works pairingJohan Hedberg1-12/+27
2014-12-03Bluetooth: Set correct LTK type and authentication for SCJohan Hedberg1-1/+12
2014-12-03Bluetooth: Add check for accidentally generating a debug keyJohan Hedberg1-3/+11
2014-12-03Bluetooth: Detect SMP SC debug keysJohan Hedberg1-0/+27
2014-12-03Bluetooth: Add selection of the SC authentication methodJohan Hedberg1-5/+69
2014-12-03Bluetooth: Track authentication method in SMP contextJohan Hedberg1-15/+17
2014-12-03Bluetooth: Add support for LE SC key generationJohan Hedberg1-0/+57
2014-12-03Bluetooth: Add support for LE SC DHKey check PDUJohan Hedberg1-0/+56
2014-12-03Bluetooth: Add support for handling LE SC user responseJohan Hedberg1-0/+154
2014-12-03Bluetooth: Add support for LE SC numeric comparisonJohan Hedberg1-1/+70
2014-12-03Bluetooth: Add LE SC support for responding to Pairing Confirm PDUJohan Hedberg1-0/+22
2014-12-03Bluetooth: Add support for sending LE SC Confirm valueJohan Hedberg1-0/+96
2014-12-03Bluetooth: Add handler function for receiving LE SC public keyJohan Hedberg1-0/+44
2014-12-03Bluetooth: Add basic support for sending our LE SC public keyJohan Hedberg1-1/+44
2014-12-03Bluetooth: Add basic support for AES-CMACJohan Hedberg1-0/+10
2014-12-03Bluetooth: Set link key generation bit if necessary for LE SCJohan Hedberg1-0/+10
2014-12-03Bluetooth: Rename hci_find_ltk_by_addr to hci_find_ltkJohan Hedberg1-4/+2
2014-12-03Bluetooth: Update SMP security level to/from auth_req for SCJohan Hedberg1-4/+14
2014-12-03Bluetooth: Add SMP flag for SC and set it when necessary.Johan Hedberg1-0/+7
2014-12-03Bluetooth: Make auth_req mask dependent on SC enabled or notJohan Hedberg1-7/+10
2014-11-15Bluetooth: Remove unnecessary hdev locking in smp.cJohan Hedberg1-7/+0
2014-11-15Bluetooth: Convert IRK list to RCUJohan Hedberg1-5/+5
2014-11-15Bluetooth: Convert LTK list to RCUJohan Hedberg1-6/+4
2014-11-15Bluetooth: Add key preference parameter to smp_sufficient_securityJohan Hedberg1-9/+11
2014-11-13Bluetooth: Use proper nesting annotation for l2cap_chan lockJohan Hedberg1-0/+10
2014-11-12Bluetooth: Remove unnecessary hci_dev_lock/unlock in smp.cJohan Hedberg1-4/+0
2014-10-28Bluetooth: spelling fixesStephen Hemminger1-2/+2
2014-10-28Bluetooth: Revert SMP self-test patchesJohan Hedberg1-120/+0
2014-10-25Bluetooth: Add self-tests for SMP crypto functionsJohan Hedberg1-0/+87
2014-10-25Bluetooth: Add skeleton for SMP self-testsJohan Hedberg1-0/+33
2014-10-25Bluetooth: Pass only crypto context to SMP crypto functionsJohan Hedberg1-18/+12
2014-09-18Bluetooth: Fix setting correct security level when initiating SMPJohan Hedberg1-1/+4
2014-09-11Bluetooth: Avoid hard-coded IO capability values in SMPJohan Hedberg1-2/+2
2014-09-11Bluetooth: Add smp_ltk_sec_level() helper functionJohan Hedberg1-1/+1
2014-09-11Bluetooth: Fix SMP security level when we have no IO capabilitiesJohan Hedberg1-2/+10
2014-09-11Bluetooth: Centralize disallowing SMP commands to a single placeJohan Hedberg1-16/+1
2014-09-11Bluetooth: Fix ignoring unknown SMP authentication requirement bitsJohan Hedberg1-9/+13
2014-09-11Bluetooth: Remove unnecessary early initialization of variableJohan Hedberg1-6/+2
2014-09-10Bluetooth: Fix allowing SMP Signing info PDUJohan Hedberg1-0/+2
2014-09-09Bluetooth: Fix mgmt pairing failure when authentication failsJohan Hedberg1-2/+1
2014-09-08Bluetooth: Fix dereferencing conn variable before NULL checkJohan Hedberg1-1/+3
2014-09-08Bluetooth: Add strict checks for allowed SMP PDUsJohan Hedberg1-38/+82
2014-09-08Bluetooth: Fix calling smp_distribute_keys() when still waiting for keysJohan Hedberg1-2/+3
2014-09-08Bluetooth: Add define for key distribution maskJohan Hedberg1-2/+3
2014-09-08Bluetooth: Fix locking of the SMP contextJohan Hedberg1-32/+44
2014-09-08Bluetooth: Remove unnecessary deferred work for SMP key distributionJohan Hedberg1-16/+5
2014-09-08Bluetooth: Move identity address update behind a workqueueJohan Hedberg1-1/+1
2014-09-08Bluetooth: Don't take any action in smp_resume_cb if not encryptedJohan Hedberg1-2/+4
2014-09-08Bluetooth: Remove unnecessary checks after canceling SMP security timerJohan Hedberg1-5/+1
2014-09-08Bluetooth: Fix SMP error and response to be mutually exclusiveJohan Hedberg1-8/+5
2014-09-08Bluetooth: Use hci_disconnect for immediate disconnection from SMPJohan Hedberg1-2/+2
2014-08-14Bluetooth: Make smp_chan_destroy() private to smp.cJohan Hedberg1-50/+50
2014-08-14Bluetooth: Always call smp_distribute_keys() from a workqueueJohan Hedberg1-16/+26
2014-08-14Bluetooth: Move canceling security_timer into smp_chan_destroy()Johan Hedberg1-6/+6
2014-08-14Bluetooth: Add SMP-internal timeout callbackJohan Hedberg1-9/+43
2014-08-14Bluetooth: Fix double free of SMP data skbJohan Hedberg1-7/+6
2014-08-14Bluetooth: Call l2cap_conn_shutdown() when SMP recv callback failsJohan Hedberg1-1/+19