mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Update to latest BearSSL code. (#5669)
This commit is contained in:
parent
5e4c2e9750
commit
a9fb6db0c8
@ -451,6 +451,42 @@ extern const br_ec_impl br_ec_p256_m15;
|
|||||||
*/
|
*/
|
||||||
extern const br_ec_impl br_ec_p256_m31;
|
extern const br_ec_impl br_ec_p256_m31;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief EC implementation "m62" (specialised code) for P-256.
|
||||||
|
*
|
||||||
|
* This implementation uses custom code relying on multiplication of
|
||||||
|
* integers up to 64 bits, with a 128-bit result. This implementation is
|
||||||
|
* defined only on platforms that offer the 64x64->128 multiplication
|
||||||
|
* support; use `br_ec_p256_m62_get()` to dynamically obtain a pointer
|
||||||
|
* to that implementation.
|
||||||
|
*/
|
||||||
|
extern const br_ec_impl br_ec_p256_m62;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get the "m62" implementation of P-256, if available.
|
||||||
|
*
|
||||||
|
* \return the implementation, or 0.
|
||||||
|
*/
|
||||||
|
const br_ec_impl *br_ec_p256_m62_get(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief EC implementation "m64" (specialised code) for P-256.
|
||||||
|
*
|
||||||
|
* This implementation uses custom code relying on multiplication of
|
||||||
|
* integers up to 64 bits, with a 128-bit result. This implementation is
|
||||||
|
* defined only on platforms that offer the 64x64->128 multiplication
|
||||||
|
* support; use `br_ec_p256_m64_get()` to dynamically obtain a pointer
|
||||||
|
* to that implementation.
|
||||||
|
*/
|
||||||
|
extern const br_ec_impl br_ec_p256_m64;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get the "m64" implementation of P-256, if available.
|
||||||
|
*
|
||||||
|
* \return the implementation, or 0.
|
||||||
|
*/
|
||||||
|
const br_ec_impl *br_ec_p256_m64_get(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief EC implementation "i15" (generic code) for Curve25519.
|
* \brief EC implementation "i15" (generic code) for Curve25519.
|
||||||
*
|
*
|
||||||
@ -531,6 +567,30 @@ extern const br_ec_impl br_ec_c25519_m62;
|
|||||||
*/
|
*/
|
||||||
const br_ec_impl *br_ec_c25519_m62_get(void);
|
const br_ec_impl *br_ec_c25519_m62_get(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief EC implementation "m64" (specialised code) for Curve25519.
|
||||||
|
*
|
||||||
|
* This implementation uses custom code relying on multiplication of
|
||||||
|
* integers up to 64 bits, with a 128-bit result. This implementation is
|
||||||
|
* defined only on platforms that offer the 64x64->128 multiplication
|
||||||
|
* support; use `br_ec_c25519_m64_get()` to dynamically obtain a pointer
|
||||||
|
* to that implementation. Due to the specificities of the curve
|
||||||
|
* definition, the following applies:
|
||||||
|
*
|
||||||
|
* - `muladd()` is not implemented (the function returns 0 systematically).
|
||||||
|
* - `order()` returns 2^255-1, since the point multiplication algorithm
|
||||||
|
* accepts any 32-bit integer as input (it clears the top bit and low
|
||||||
|
* three bits systematically).
|
||||||
|
*/
|
||||||
|
extern const br_ec_impl br_ec_c25519_m64;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get the "m64" implementation of Curve25519, if available.
|
||||||
|
*
|
||||||
|
* \return the implementation, or 0.
|
||||||
|
*/
|
||||||
|
const br_ec_impl *br_ec_c25519_m64_get(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Aggregate EC implementation "m15".
|
* \brief Aggregate EC implementation "m15".
|
||||||
*
|
*
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
|
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
|
||||||
#define BEARSSL_GIT 79edbc8
|
#define BEARSSL_GIT 6778687
|
||||||
|
Binary file not shown.
@ -3,7 +3,7 @@
|
|||||||
VER_H=../include/bearssl/bearssl_git.h
|
VER_H=../include/bearssl/bearssl_git.h
|
||||||
|
|
||||||
all T0 clean: bearssl/README.txt
|
all T0 clean: bearssl/README.txt
|
||||||
PATH=$(PATH):$(PWD)/../../xtensa-lx106-elf/bin/ && cd bearssl && make CONF=esp8266 $@
|
PATH="$(PATH):$(PWD)/../../xtensa-lx106-elf/bin/" && cd bearssl && make CONF=esp8266 $@
|
||||||
|
|
||||||
install: all version-header
|
install: all version-header
|
||||||
cp bearssl/esp8266/libbearssl.a ../lib/.
|
cp bearssl/esp8266/libbearssl.a ../lib/.
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 79edbc83bf721e0159ce66272e86f2385d58612b
|
Subproject commit 67786877341aac98c62e3b765fc64f4c49d81370
|
Loading…
x
Reference in New Issue
Block a user