[riot-commits] [RIOT-OS/RIOT] 0352c7: crypto: Fix code style

Juan I Carrano noreply at github.com
Wed Aug 7 13:26:27 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 0352c7406d0a022d356cd5a08444021f4c6ed0d9
      https://github.com/RIOT-OS/RIOT/commit/0352c7406d0a022d356cd5a08444021f4c6ed0d9
  Author: Mathias Tausig <mathias at tausig.at>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

  Changed paths:
    M sys/crypto/aes.c
    M tests/unittests/tests-crypto/tests-crypto-aes.c
    M tests/unittests/tests-crypto/tests-crypto-cipher.c

  Log Message:
  -----------
  crypto: Fix code style


  Commit: 66edeeb9c69a4991bae7e03d70846679f09b253f
      https://github.com/RIOT-OS/RIOT/commit/66edeeb9c69a4991bae7e03d70846679f09b253f
  Author: Mathias Tausig <mathias at tausig.at>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

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

  Log Message:
  -----------
  crypto: aes_init(): Fail correctly when called with bad key length

A proper error code is returned if a key with unsupported (either by the implementation or the AES algorithm) length is passed to aes_init.
This fixes Issue #10175


  Commit: 17b2f3ac54f48499a1f531f69dbcc20daa43db49
      https://github.com/RIOT-OS/RIOT/commit/17b2f3ac54f48499a1f531f69dbcc20daa43db49
  Author: Mathias Tausig <mathias at tausig.at>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

  Changed paths:
    M tests/unittests/tests-crypto/tests-crypto-aes.c

  Log Message:
  -----------
  crypto: Call AES tests with real key length


  Commit: 0d80383a5c89d4091d2b045413ec4936c8026fb7
      https://github.com/RIOT-OS/RIOT/commit/0d80383a5c89d4091d2b045413ec4936c8026fb7
  Author: Mathias Tausig <mathias at tausig.at>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

  Changed paths:
    M tests/unittests/tests-crypto/tests-crypto-aes.c
    M tests/unittests/tests-crypto/tests-crypto-cipher.c

  Log Message:
  -----------
  crypto: Add tests for aes_init return value on bad key length


  Commit: ff57a904e30320041e9e4a553e46ae02ff2c5bb3
      https://github.com/RIOT-OS/RIOT/commit/ff57a904e30320041e9e4a553e46ae02ff2c5bb3
  Author: Juan I Carrano <j.carrano at fu-berlin.de>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

  Changed paths:
    M sys/crypto/aes.c
    M sys/include/crypto/aes.h
    M tests/unittests/tests-crypto/tests-crypto-aes.c
    M tests/unittests/tests-crypto/tests-crypto-cipher.c

  Log Message:
  -----------
  Merge pull request #10271 from mtausig/aes_rv

Fix return value of aes_init for keys of incorrect length


Compare: https://github.com/RIOT-OS/RIOT/compare/32f54178eaf0...ff57a904e303


More information about the commits mailing list