You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/12/16 18:44:03 UTC

[GitHub] [mynewt-core] wes3 opened a new pull request #2134: hw/drivers/crypto: Add crypto_in_use flag.

wes3 opened a new pull request #2134: hw/drivers/crypto: Add crypto_in_use flag.
URL: https://github.com/apache/mynewt-core/pull/2134
 
 
   This commit adds a flag to the crypto driver called "in_use".
   This flag, and associated API, is intended for use by ISR's to
   perform a quick check to see if an underlying crypto hw peripheral
   is being used so that the HW peripheral can be used in the ISR
   or the use of an associated piece may impact an ongoing crypto
   operation.
   
   Currently, this is only implemented for the nrf52. Some changes
   were made to the nrf52 crypto code. Some reasoning behind some
   of the changes: 1) do not think a counter to bail out of the
   loop waiting for the crypto to end or an error to occur is needed.
   Either one of the two will occur. 2) Not quite sure if it is
   possible but if both EVENTS_ENDECB and EVENTS_ERRORECB can be set
   at the same time, the previous could assume success when there was
   an error. 3) If EVENTS_ERRORECB is generated we simply try the
   operation again.
   
   Note that a somewhat un-related change was made to the encrypted
   flash ef_crypto driver to add a restriction such that CRYPTO is
   required to be defined when using this package.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services