diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-05-25 18:42:20 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-05-25 18:42:20 +0000 |
commit | be77fe9c295a17a449309bc1d3501a3bc6ce5c4f (patch) | |
tree | c4c4967fd140f932f5cf2aa0e7c5c7d8801f646d /stack/smp/p_256_ecc_pp.h | |
parent | 6bde1f2e5c1700370fe98eba5e7b00b13debe68b (diff) | |
parent | f1c2c86080bcd7b3142ff821441696fc99c2bc9a (diff) | |
download | bt-oreo-m6-s2-release.tar.gz |
Merge cherrypicks of [4195294, 4195296, 4195440, 4195441, 4186165, 4186166, 4186580, 4195442, 4195443, 4186193, 4186194, 4186195, 4186196, 4186607, 4195444, 4195297, 4186608, 4186609, 4186610, 4186611, 4186612, 4186613, 4186614, 4186649, 4186650, 4186651, 4186652, 4186653, 4186654, 4186655, 4186656, 4186657, 4195518, 4195519, 4195520, 4195521, 4195522, 4186406, 4186407, 4186408, 4195523, 4195558, 4195559, 4186197, 4195524, 4186615, 4195445, 4195446, 4186829, 4186830, 4186831, 4186832, 4186833, 4186834, 4186835, 4186836, 4186837, 4195578, 4195579, 4195580, 4195581, 4195447, 4186581, 4195448, 4195560] into sparse-4749909-L06000000176800346android-8.1.0_r41oreo-m6-s2-release
Change-Id: I81960fc50b6324e0a6d23936980b80a5de1a1676
Diffstat (limited to 'stack/smp/p_256_ecc_pp.h')
-rw-r--r-- | stack/smp/p_256_ecc_pp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stack/smp/p_256_ecc_pp.h b/stack/smp/p_256_ecc_pp.h index dcc4211dc..b7a8e0066 100644 --- a/stack/smp/p_256_ecc_pp.h +++ b/stack/smp/p_256_ecc_pp.h @@ -25,6 +25,7 @@ #pragma once +#include <cstdbool> #include "p_256_multprecision.h" typedef struct { @@ -55,6 +56,8 @@ typedef struct { extern elliptic_curve_t curve; extern elliptic_curve_t curve_p256; +bool ECC_ValidatePoint(const Point& p); + void ECC_PointMult_Bin_NAF(Point* q, Point* p, uint32_t* n, uint32_t keyLength); #define ECC_PointMult(q, p, n, keyLength) \ |