Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port BearSSL + crypto integration to NINA #57

Merged
merged 137 commits into from
Jan 28, 2021

Commits on Jan 7, 2016

  1. Initial Upload

    Me No Dev committed Jan 7, 2016
    Configuration menu
    Copy the full SHA
    68ff762 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2016

  1. remove libraries

    facchinm committed Sep 27, 2016
    Configuration menu
    Copy the full SHA
    47836f7 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2016

  1. Configuration menu
    Copy the full SHA
    8e51386 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a541a40 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2016

  1. Configuration menu
    Copy the full SHA
    3f4a6e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c43365a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d290019 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2016

  1. Configuration menu
    Copy the full SHA
    93c6f4e View commit details
    Browse the repository at this point in the history
  2. Remove Wire slave sender support for now

    Since there is no start condition interrupt
    sandeepmistry committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    f48ae8f View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2017

  1. Configuration menu
    Copy the full SHA
    2b14fa4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6bae28c View commit details
    Browse the repository at this point in the history
  3. Add BearSSLClient stubs

    sandeepmistry committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    6221177 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2394029 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    11f7112 View commit details
    Browse the repository at this point in the history
  6. Fill in initial BearSSLClient methods

    Limitations:
    - available only returns 1 or 0
    - connect(ip, port) not implemented
    - trust anchors hard coded in file
    - requires _gettimeofday implementation in sketch
    sandeepmistry committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    3a101ff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c214077 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    aaebc17 View commit details
    Browse the repository at this point in the history
  9. HACK: make br_sslio_read(ctx, dst, len) return buffered length if dst…

    … is NULL
    
    This let’s us use it in Client::available()
    sandeepmistry committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    c8e656d View commit details
    Browse the repository at this point in the history
  10. Make available() return values greater than 1

    By using br_sslio_read(ctx, NULL, len) hack
    sandeepmistry committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    355101b View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2017

  1. Configuration menu
    Copy the full SHA
    f9df9dc View commit details
    Browse the repository at this point in the history
  2. Add ArduinoBearSSL.onGetTime(callback) API

    Used to return _gettimeofday value
    sandeepmistry committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    28f4764 View commit details
    Browse the repository at this point in the history
  3. Revert "HACK: make br_sslio_read(ctx, dst, len) return buffered lengt…

    …h if dst is NULL"
    
    This reverts commit 2bd615f380611fc26dd5ecdb916a91f90f9763ae.
    sandeepmistry committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    87f1ac8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31db912 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ce5a273 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    387b0f4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e3cf838 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f2510bd View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2017

  1. Revert "Enable BR_USE_UNIX_TIME on Arduino"

    This reverts commit 30b1db8865ac4cc6c5468f43ba7725378afab4e0.
    sandeepmistry committed Nov 15, 2017
    Configuration menu
    Copy the full SHA
    7da2266 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3811b04 View commit details
    Browse the repository at this point in the history
  3. Revert "Inject fake (stack based entropy) in br_ssl_engine_init_rand …

    …on Arduino"
    
    This reverts commit 0d353757d75a2c83129d220bf3dc731e08a2669a.
    sandeepmistry committed Nov 15, 2017
    Configuration menu
    Copy the full SHA
    22494be View commit details
    Browse the repository at this point in the history
  4. Inject (pseudo) entropy via br_ssl_engine_inject_entropy

    before br_ssl_client_reset
    sandeepmistry committed Nov 15, 2017
    Configuration menu
    Copy the full SHA
    3b3c5b8 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2017

  1. Configuration menu
    Copy the full SHA
    00c8c76 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5dbfea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a5b2d0e View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2017

  1. Configuration menu
    Copy the full SHA
    94b751b View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2017

  1. Configuration menu
    Copy the full SHA
    0d7c487 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2017

  1. Configuration menu
    Copy the full SHA
    5ca368e View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2017

  1. Configuration menu
    Copy the full SHA
    e13ae73 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2017

  1. Configuration menu
    Copy the full SHA
    39dddfd View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2017

  1. Configuration menu
    Copy the full SHA
    0ee51f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b194f4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b044a0f View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2017

  1. Operate ECC508 at 1 MHz after waking up

    Wake up frequency needs to remain at 100 kHz
    sandeepmistry committed Dec 21, 2017
    Configuration menu
    Copy the full SHA
    31c0586 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2018

  1. Configuration menu
    Copy the full SHA
    4130cff View commit details
    Browse the repository at this point in the history
  2. Correct incorrect case

    sandeepmistry committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    8fbd956 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2018

  1. Configuration menu
    Copy the full SHA
    620fcf0 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2018

  1. Configuration menu
    Copy the full SHA
    17114aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ea1f9d View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2018

  1. Configuration menu
    Copy the full SHA
    3e04f38 View commit details
    Browse the repository at this point in the history
  2. Add setEccSlot API to set private key slot and cert bytes

    instead or in constructor
    sandeepmistry committed Feb 13, 2018
    Configuration menu
    Copy the full SHA
    5e32ca0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6906aab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dfa149d View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2018

  1. Rename ECC508 to ECCX08

    sandeepmistry committed Feb 14, 2018
    Configuration menu
    Copy the full SHA
    aea0616 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2018

  1. Configuration menu
    Copy the full SHA
    6090cd8 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2018

  1. infinite while loop fix write() and clientWrite() (arduino#2)

    * Reimplemented return logic in BearSSLClient::write() and BearSSLClient::clientWrite() in  order to avoid infinite loop in https://github.com/Rocketct/ArduinoBearSSL/blob/master/src/bearssl/ssl_io.c#L279 when networking error happend in low level client(GSMClient)
    * Reimplemented logic of BearSSLClient::write(const uint8_t *buf, size_t size) function
    Rocketct authored and sandeepmistry committed Jun 20, 2018
    Configuration menu
    Copy the full SHA
    cbdd42d View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2018

  1. Configuration menu
    Copy the full SHA
    70d40bd View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2018

  1. Add license

    sandeepmistry committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    6ab1050 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2018

  1. Update comments

    sandeepmistry committed Jul 19, 2018
    Configuration menu
    Copy the full SHA
    ba178ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09b3794 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    073fd6d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f3beee View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    be79c97 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fa268db View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2018

  1. Mask version for version number

    agdl committed Oct 13, 2018
    Configuration menu
    Copy the full SHA
    e84cf18 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2018

  1. Configuration menu
    Copy the full SHA
    21b60cf View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2019

  1. Configuration menu
    Copy the full SHA
    a745b06 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2019

  1. Add SHA256 support

    sandeepmistry committed Jan 4, 2019
    Configuration menu
    Copy the full SHA
    1fce504 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6164999 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4efa29 View commit details
    Browse the repository at this point in the history
  4. Add AmazonRoot CA 1

    sandeepmistry committed Jan 4, 2019
    Configuration menu
    Copy the full SHA
    70cb98f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    37e262d View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2019

  1. Configuration menu
    Copy the full SHA
    1158be4 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2019

  1. Configuration menu
    Copy the full SHA
    c6a06c9 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2019

  1. Configuration menu
    Copy the full SHA
    093c3ee View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2019

  1. Configuration menu
    Copy the full SHA
    69c2e4a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa772f3 View commit details
    Browse the repository at this point in the history
  3. More ASN.1 utils

    sandeepmistry committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    61054d1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    703d84f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    abdd3fe View commit details
    Browse the repository at this point in the history
  6. Add SHA1 from https://github.com/clibs/sha1

    Commit d5b29e11ec4871b78b370e8e00bd0cd56d798dda
    sandeepmistry committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    fd8ef8d View commit details
    Browse the repository at this point in the history
  7. Compile warning

    sandeepmistry committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    453a5f9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    98350c7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cd73b9d View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2019

  1. Configuration menu
    Copy the full SHA
    4cbaae8 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2019

  1. Configuration menu
    Copy the full SHA
    71cef5e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3257dd View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2019

  1. Fixes to various integer encoding

    guillep2k authored and sandeepmistry committed Mar 28, 2019
    Configuration menu
    Copy the full SHA
    9861c11 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2019

  1. Configuration menu
    Copy the full SHA
    0e5b41e View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2019

  1. Configuration menu
    Copy the full SHA
    b08837e View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2019

  1. Increase delay in sign()

    Calling sign() with 60ms of delay is not ok on ECC608, while it works just fine on 508. 70ms looks fine for both.
    facchinm committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    17d506e View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2019

  1. #define BEAR_SSL_CLIENT_IOBUF_SIZE

    Alan Chen authored and sandeepmistry committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    c14d921 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2019

  1. Configuration menu
    Copy the full SHA
    dfcb32b View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2019

  1. Add errorCode() API

    sandeepmistry committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    5451041 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2020

  1. Add support for not sending any SNI

    manchoz authored and Rocketct committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    00521cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0957a82 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2020

  1. Use two buffers instead of split mode (arduino#18)

    Use two dedicated buffers for input and output instead of split mode.
    
    Indeed some MQTT server (especially with TLS) needs a full 8k buffer as
    they send their Certificate. On the other hand, on output, a smaller
    buffer is needed.
    
    Clients will be able to finely tune those values by defining
    BEAR_SSL_CLIENT_{I,O}BUF_SIZE before including ArduinoBearSSL.h, the
    default default values have been chosen to keep current behavior as
    requested during review.
    
    Signed-off-by: Fabrice Fontaine <[email protected]>
    ffontaine authored May 18, 2020
    Configuration menu
    Copy the full SHA
    c666e0c View commit details
    Browse the repository at this point in the history

Commits on May 28, 2020

  1. Configuration menu
    Copy the full SHA
    5de9bb0 View commit details
    Browse the repository at this point in the history
  2. Adding an additional BearSSL constructor as well as a method setClien…

    …t to allow late initialisation. (arduino#29)
    
    This allows for the ArduinoIoTCloud firmware to intantiate ArduinoBearSSL on the stack instead of the heap.
    aentinger authored May 28, 2020
    Configuration menu
    Copy the full SHA
    885eae2 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2020

  1. Allow default singleton on different Wire (arduino#26)

    Co-authored-by: Martino Facchin <[email protected]>
    aentinger and facchinm authored Jul 24, 2020
    Configuration menu
    Copy the full SHA
    44db420 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2020

  1. Configuration menu
    Copy the full SHA
    a67d4f0 View commit details
    Browse the repository at this point in the history
  2. Moving the imported ArduinoECCX08 library into desired subfolder ardu…

    …ino/libraries/ArduinoEXXX08
    aentinger committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    d6e0e3e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7020ad2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0542d55 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f005e15 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1f97e6e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    28d6ced View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0b5b364 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ad851ea View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9b0289b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8fed17b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    03dbeac View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    768fd8e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8632328 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2768bc4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f82ccd8 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    70fdc0d View commit details
    Browse the repository at this point in the history
  18. Adding Client/IPAddress and extending Arduino.h and WMath to provide …

    …all the functions necessary for compiling ArduinoBearSSL
    aentinger committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    cf26475 View commit details
    Browse the repository at this point in the history
  19. Add global C++ define ARDUINO which is required by ArduinoBearSSL to …

    …include int br_sslio_read_available(br_sslio_context *cc); and int br_sslio_peek(br_sslio_context *cc, void *dst, size_t len);"
    aentinger committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    34b7097 View commit details
    Browse the repository at this point in the history
  20. Compile ArduinoBearSSL

    aentinger committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    b2ce6df View commit details
    Browse the repository at this point in the history
  21. Cleaning up IPAddress (would become an abstract base class otherwise …

    …and could not be instantiated) due to pruning due to fitting in this minimal core
    aentinger committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    6bac6fb View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    991d4cd View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7cdef7c View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    f7b76d6 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2020

  1. Configuration menu
    Copy the full SHA
    05da3b1 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2020

  1. Configuration menu
    Copy the full SHA
    f5ae0c8 View commit details
    Browse the repository at this point in the history
  2. Use ArduinoCore-API:Ringbuffer and increase size to 256 bytes. In ECC…

    …X08CertClass::generatePublicKey whey are performing a 64 byte read from the ECCX08. Although the previously used Ringbuffer was 64 bytes large it contained in fact a bug that reduced it's effective size to 63 bytes which resulted in an infinite loop.
    aentinger committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    e6c4dd6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2577c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1b7b7f7 View commit details
    Browse the repository at this point in the history
  5. Use ArduinoIoTCloud trust anchors instead of the generic default ones…

    … (which anyway don't include the ArduinoIoTCloud TAs)
    aentinger committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    93925ac View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7b7bd47 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2020

  1. Configuration menu
    Copy the full SHA
    8f986c1 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. Configuration menu
    Copy the full SHA
    f2a0cfd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be90d36 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2020

  1. Adding section to README explaining how to update the UNO WIFI REV2 N…

    …INA module via SerialNINAPassthrough
    aentinger committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    70b08d8 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2021

  1. Configuration menu
    Copy the full SHA
    3e7590d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cd843d8 View commit details
    Browse the repository at this point in the history
  3. Release 1.4.2

    facchinm committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    55c21a4 View commit details
    Browse the repository at this point in the history