[riot-commits] [RIOT-OS/RIOT] 942737: crypto/modes/ctr: update api to const input buffer...

Juan I Carrano juan at carrano.com.ar
Tue Nov 27 15:33:03 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 942737184933a36440141967409e870d42f8b87f
      https://github.com/RIOT-OS/RIOT/commit/942737184933a36440141967409e870d42f8b87f
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
    M sys/crypto/modes/ctr.c
    M sys/include/crypto/modes/ctr.h

  Log Message:
  -----------
  crypto/modes/ctr: update api to const input buffers

Input buffers are not modified, so can be declared const arguments.
This will allow using `const` inputs for `modes/ccm`.


  Commit: 9e6782afb44c8cc3291f670bcb11624174bb7900
      https://github.com/RIOT-OS/RIOT/commit/9e6782afb44c8cc3291f670bcb11624174bb7900
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
    M sys/crypto/modes/ccm.c

  Log Message:
  -----------
  crypto/modes/ccm: update internal functions to const input buffers

Input buffers are not modified, so can be declared const arguments.
This will allow using `const` inputs for `modes/ccm`.

Also say `iv` const even if not required for the api update, just because it is
the case.


  Commit: c87fe94ec10f684dedafa76703a28408dcdccece
      https://github.com/RIOT-OS/RIOT/commit/c87fe94ec10f684dedafa76703a28408dcdccece
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
    M sys/crypto/modes/ccm.c
    M sys/include/crypto/modes/ccm.h
    M tests/unittests/tests-crypto/tests-crypto-modes-ccm.c

  Log Message:
  -----------
  crypto/modes/ccm: update api to const input buffers

Input buffers are not modified, so can be declared const arguments.


  Commit: 3ca51d8b5dffd8469ac82b4307d2c8aa2608028d
      https://github.com/RIOT-OS/RIOT/commit/3ca51d8b5dffd8469ac82b4307d2c8aa2608028d
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
    M tests/unittests/tests-crypto/tests-crypto.h

  Log Message:
  -----------
  tests-crypto/test-crypto.h: update api to const input buffers

Input buffers are not modified, so can be declared const arguments.
This will allow using `const` inputs for `modes/ccm` tests.


  Commit: 5c426f0fc92520bf440f65b383d4776c7d7cd0db
      https://github.com/RIOT-OS/RIOT/commit/5c426f0fc92520bf440f65b383d4776c7d7cd0db
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
    M tests/unittests/tests-crypto/tests-crypto-modes-ccm.c

  Log Message:
  -----------
  tests-crypto-modes-ccm: change test inputs to const

Do required changes to have test inputs as const buffers.


  Commit: 050e06f20f845d57eaa4fed9e6077f57de1a1cb4
      https://github.com/RIOT-OS/RIOT/commit/050e06f20f845d57eaa4fed9e6077f57de1a1cb4
  Author: Juan I Carrano <juan at carrano.com.ar>
  Date:   2018-11-27 (Tue, 27 Nov 2018)

  Changed paths:
    M sys/crypto/modes/ccm.c
    M sys/crypto/modes/ctr.c
    M sys/include/crypto/modes/ccm.h
    M sys/include/crypto/modes/ctr.h
    M tests/unittests/tests-crypto/tests-crypto-modes-ccm.c
    M tests/unittests/tests-crypto/tests-crypto.h

  Log Message:
  -----------
  Merge pull request #10376 from cladmi/pr/crypto/ccm/const_input

crypto/modes/ccm: update api to const input buffers


Compare: https://github.com/RIOT-OS/RIOT/compare/d3e9eec8fe11...050e06f20f84
      **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