Skip to content

sys/crypto/modes/ccm: handle input_len = 0#13848

Merged
leandrolanzieri merged 2 commits into
RIOT-OS:masterfrom
fjmolinas:pr_ccm_no_plaintext
Apr 14, 2020
Merged

sys/crypto/modes/ccm: handle input_len = 0#13848
leandrolanzieri merged 2 commits into
RIOT-OS:masterfrom
fjmolinas:pr_ccm_no_plaintext

Conversation

@fjmolinas

Copy link
Copy Markdown
Contributor

Contribution description

This PR is split from #13149, it allows handling handling of messages with no plaintext.

Testing procedure

A test case has been added, sys_crpyto tests still pass:

make -C tests/sys_crypto/ all test

Help: Press s to start test, r to print it is ready
READY
s
START
main(): This is RIOT! (Version: 2020.04-devel-2051-ga3dbc-pr_ccm_no_plaintext)
..................................
OK (34 tests)
  • green murdock

Issues/PRs references

#13149

@fjmolinas fjmolinas added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: crypto Area: Cryptographic libraries CI: run tests If set, CI server will run tests on hardware for the labeled PR labels Apr 9, 2020
Comment thread sys/crypto/modes/ccm.c Outdated
@fjmolinas

Copy link
Copy Markdown
Contributor Author

The test failure is unrelated:

--- run_test job results (2 failed, 53 passed, 55 total):
    failed:
    tests/netstats_l2/esp32-wroom-32:gnu
    tests/pkg_ubasic/esp32-wroom-32:gnu

I'll re-trigger the build with no tests.

@fjmolinas fjmolinas removed the CI: run tests If set, CI server will run tests on hardware for the labeled PR label Apr 10, 2020
@fjmolinas fjmolinas force-pushed the pr_ccm_no_plaintext branch from 19814f3 to 7a39e2e Compare April 10, 2020 08:41
@leandrolanzieri leandrolanzieri self-assigned this Apr 14, 2020

@leandrolanzieri leandrolanzieri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good and tests are passing. ACK

@leandrolanzieri leandrolanzieri added Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Apr 14, 2020
@leandrolanzieri leandrolanzieri merged commit b4655f6 into RIOT-OS:master Apr 14, 2020
@leandrolanzieri leandrolanzieri added this to the Release 2020.04 milestone Apr 17, 2020
@leandrolanzieri

Copy link
Copy Markdown
Contributor

Backport provided in #13904

@fjmolinas fjmolinas deleted the pr_ccm_no_plaintext branch July 31, 2020 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: crypto Area: Cryptographic libraries CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants