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

Commit d4e3f1f4 authored by Hui Peng's avatar Hui Peng Committed by Gerrit Code Review
Browse files

Merge "[Invisalign] Remove unused smp/crypto_toolbox.h" into main

parents 2f5f2843 31b44a55
Loading
Loading
Loading
Loading

system/stack/smp/crypto_toolbox.h

deleted100644 → 0
+0 −36
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "stack/include/bt_types.h"

/* Functions below implement cryptographic toolbox, as described in BT Spec
 * Ver 5.0 | Vol 3, Part H CRYPTOGRAPHIC TOOLBOX. Please see the spec for
 * description.
 *
 * Example of usage is avaliable in cryptographic_toolbox_test.cc */

Octet16 smp_calculate_f4(uint8_t* u, uint8_t* v, const Octet16& x, uint8_t z);
uint32_t smp_calculate_g2(uint8_t* u, uint8_t* v, const Octet16& x,
                          const Octet16& y);
void smp_calculate_f5(uint8_t* w, const Octet16& n1, const Octet16& n2,
                      uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octet16* ltk);
Octet16 smp_calculate_f6(const Octet16& w, const Octet16& n1, const Octet16& n2,
                         const Octet16& r, uint8_t* iocap, uint8_t* a1,
                         uint8_t* a2);
Octet16 smp_calculate_h6(const Octet16& w, std::array<uint8_t, 4> keyid);
Octet16 smp_calculate_h7(const Octet16& salt, const Octet16& w);
Octet16 smp_calculate_ltk_to_link_key(const Octet16& ltk, bool use_h7);
Octet16 smp_calculate_link_key_to_ltk(const Octet16& link_key, bool use_h7);