1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

8 Commits

Author SHA1 Message Date
Dirk Mueller
1d26b28225 Remove duplicated sha1 implementation (Fixes #6568) (#6569)
* Remove duplicated sha1 implementation (Fixes #6568)

The Hash library had its own copy of a loop-unrolled sha1 implementation
adding a large code footprint for no good reason, as there are several
sha1 implementations already in tree (one in NONOS-SDK as well as one
in bearssl). Switching to the bearssl one is straightforward and removes
about 3kb of code size overhead.

Also cleanup some obvious inefficiencies (copy by value, string
summing, no reservation causing repeated reallocations) in the
implementation.

* Remove overload variants for sha1(...) that accept nonconst data

The data is always remaining unmodified, so non-const overloads
are confusing and redundant. Also optimize the hexify variant
a bit more.
2019-09-30 20:58:09 -07:00
Allman-astyler
eea9999dc5 Revert "Allman now (#6080)" (#6090)
This reverts commit 98125f88605cd7e46e9be4e1b3ad0600dd5d2b51.
2019-05-14 00:09:54 +02:00
Allman-astyler
98125f8860 Allman now (#6080)
* switch restyle script for CI

* remove confirmation

* restyle with allman
2019-05-13 16:41:34 +02:00
Markus Sattler
4015a47b08 add one missing const 2015-05-20 20:04:15 +02:00
Markus Sattler
a0b1dff542 code style 2015-05-20 19:48:24 +02:00
Markus Sattler
4b786d0df6 add more functions to handle sha1 in differed cases 2015-05-20 19:41:40 +02:00
Markus Sattler
4b1c99af44 the sha1 functions are part of the SDK so remove sha1.c 2015-05-20 19:17:25 +02:00
Markus Sattler
661c7075b7 add Hash library currently supports SHA1 2015-05-20 18:57:42 +02:00