Skip to content

Commit

Permalink
Update to latest BearSSL w/es22519 fix (#5468)
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower authored Dec 10, 2018
1 parent 4c8d8f1 commit 8c7dc4a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions tools/sdk/include/bearssl/bearssl_ec.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,30 @@ extern const br_ec_impl br_ec_c25519_m15;
*/
extern const br_ec_impl br_ec_c25519_m31;

/**
* \brief EC implementation "m62" (specialised code) for Curve25519.
*
* This implementation uses custom code relying on multiplication of
* integers up to 62 bits, with a 124-bit result. This implementation is
* defined only on platforms that offer the 64x64->128 multiplication
* support; use `br_ec_c25519_m62_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_m62;

/**
* \brief Get the "m62" implementation of Curve25519, if available.
*
* \return the implementation, or 0.
*/
const br_ec_impl *br_ec_c25519_m62_get(void);

/**
* \brief Aggregate EC implementation "m15".
*
Expand Down
2 changes: 1 addition & 1 deletion tools/sdk/include/bearssl/bearssl_git.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
#define BEARSSL_GIT 95c20d1
#define BEARSSL_GIT 2398cc6
Binary file modified tools/sdk/lib/libbearssl.a
Binary file not shown.

0 comments on commit 8c7dc4a

Please sign in to comment.