31 Jul, 2020

1 commit


07 Oct, 2017

4 commits

  • CC net/bluetooth/selftest.o
    net/bluetooth/selftest.c: In function ‘bt_selftest_init’:
    net/bluetooth/selftest.c:246:3: warning: ‘duration’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    snprintf(test_ecdh_buffer, sizeof(test_ecdh_buffer),
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "PASS (%llu usecs)\n", duration);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    net/bluetooth/selftest.c:203:21: note: ‘duration’ was declared here
    unsigned long long duration;
    ^~~~~~~~

    Signed-off-by: Marcel Holtmann
    Signed-off-by: Johan Hedberg

    Marcel Holtmann
     
  • That Bluetooth SMP knows about the private key is pointless, since the
    detection of debug key usage is actually via the public key portion.
    With this patch, the Bluetooth SMP will stop keeping a copy of the
    ecdh private key and will let the crypto subsystem to generate and
    handle the ecdh private key, potentially benefiting of hardware
    ecc private key generation and retention.

    The loop that tries to generate a correct private key is now removed and
    we trust the crypto subsystem to generate a correct private key. This
    backup logic should be done in crypto, if really needed.

    Signed-off-by: Tudor Ambarus
    Signed-off-by: Marcel Holtmann

    Tudor Ambarus
     
  • Signed-off-by: Tudor Ambarus
    Signed-off-by: Marcel Holtmann

    Tudor Ambarus
     
  • Before this change, a new crypto tfm was allocated, each time,
    for both key generation and shared secret computation.

    Allocate a single tfm for both cases.

    Signed-off-by: Tudor Ambarus
    Signed-off-by: Marcel Holtmann

    Tudor Ambarus
     

12 Aug, 2017

1 commit


30 Apr, 2017

1 commit


25 Apr, 2017

1 commit


02 Apr, 2015

1 commit


14 Jan, 2015

1 commit


30 Dec, 2014

4 commits