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

Commit fce35b34 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "OOB: Generate random for LE"

parents 2d3fefa6 c73e1a64
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -207,6 +207,7 @@ cc_library_static {
    shared_libs: [
        "libcutils",
        "liblog",
        "libcrypto",
    ],
    required: [
        "libldacBT_enc",
@@ -365,6 +366,7 @@ cc_test {
    ],
    shared_libs: [
        "libcutils",
        "libcrypto",
    ],
    static_libs: [
        "liblog",
+3 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@
#include "bt_utils.h"
#include "stack_config.h"

#include "gd/os/log.h"
#include "gd/os/rand.h"
#include "hcimsgs.h"
#include "l2c_api.h"
#include "l2cdefs.h"
@@ -565,6 +567,7 @@ void SMP_CrLocScOobData(
                            const std::array<unsigned char, 16>&,
                            const std::array<unsigned char, 16>&)>
        callback) {
  smp_cb.local_random = bluetooth::os::GenerateRandom<16>();
  smp_cb.selected_association_model = SMP_MODEL_SEC_CONN_OOB;
  smp_calculate_local_commitment(&smp_cb);
  std::move(callback).Run(BT_TRANSPORT_LE, true, smp_cb.commitment,