[riot-commits] [RIOT-OS/RIOT] fa6481: crypto/helper: Add secure wipe function

Juan I Carrano juan at carrano.com.ar
Fri Nov 30 11:32:48 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: fa64817e61a7670ab787818bc8f3ca8ed4c8d51d
      https://github.com/RIOT-OS/RIOT/commit/fa64817e61a7670ab787818bc8f3ca8ed4c8d51d
  Author: Koen Zandberg <koen at bergzand.net>
  Date:   2018-11-07 (Wed, 07 Nov 2018)

  Changed paths:
    M sys/crypto/helper.c
    M sys/include/crypto/helper.h

  Log Message:
  -----------
  crypto/helper: Add secure wipe function

Adds a cryptographically secure wipe function to wipe structs with
sensitive data. Works by first casting the pointer to a `volatile`
pointer to ensure that the compiler doesn't optimize the "memset" away.


  Commit: 730286903a57baf2ad1fe592b94efce3e685982e
      https://github.com/RIOT-OS/RIOT/commit/730286903a57baf2ad1fe592b94efce3e685982e
  Author: Koen Zandberg <koen at bergzand.net>
  Date:   2018-11-07 (Wed, 07 Nov 2018)

  Changed paths:
    A tests/unittests/tests-crypto/tests-crypto-helper.c
    M tests/unittests/tests-crypto/tests-crypto.c
    M tests/unittests/tests-crypto/tests-crypto.h

  Log Message:
  -----------
  crypto/helper: Add test for crypto_secure_wipe

The test added for crypto_secure_wipe wipes a buffer with a secret in
it. Only the last byte is kept as it was. The last byte is used to check
that the function doesn't write outside the supplied buffer.


  Commit: 77c9cc4041d495120b175fb2089d07d4b15e60d6
      https://github.com/RIOT-OS/RIOT/commit/77c9cc4041d495120b175fb2089d07d4b15e60d6
  Author: Juan I Carrano <juan at carrano.com.ar>
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
    M sys/crypto/helper.c
    M sys/include/crypto/helper.h
    A tests/unittests/tests-crypto/tests-crypto-helper.c
    M tests/unittests/tests-crypto/tests-crypto.c
    M tests/unittests/tests-crypto/tests-crypto.h

  Log Message:
  -----------
  Merge pull request #10219 from bergzand/pr/crypt/helper_add_wipe

crypto/helper: Add secure wipe function


Compare: https://github.com/RIOT-OS/RIOT/compare/3cf4b23870db...77c9cc4041d4
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list