Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment