[riot-notifications] [RIOT-OS/RIOT] pkg/libcose: Update toi latest master (#16464)

chrysn notifications at github.com
Mon May 10 17:45:21 CEST 2021


### Contribution description

The latest libcose master adds support for AES-CCM through the added tinycrypt backend.

A tinycrypt opportunistic POSIX RNG dependency is patched out to allow the interaction -- as described in the commit, that would only have worked on native anyway, and it's better to consistently not pull in that function than give people surprise behavior when going away from native. (Also, the native function would have conflicted with the more generic implementation provided by libcose, which needs a RNG linked in there for key generation).

### Testing procedure

* `make -C tests/pkg_libcose all flash test`
* Same but with

```patch
diff --git a/tests/pkg_libcose/Makefile b/tests/pkg_libcose/Makefile
index 8206fe43b0..105b5a9aac 100644
--- a/tests/pkg_libcose/Makefile
+++ b/tests/pkg_libcose/Makefile
@@ -5,8 +5,9 @@ TEST_ON_CI_WHITELIST += native
 USEPKG += libcose
 # By default we use hacl as crypto backend, uncomment to use a different
 # crypto backend.
-USEMODULE += libcose_crypt_hacl
-# USEMODULE += libcose_crypt_c25519
+#USEMODULE += libcose_crypt_hacl
+USEMODULE += libcose_crypt_tinycrypt
+USEMODULE += libcose_crypt_c25519
 USEMODULE += memarray
 USEMODULE += embunit
```

to run on the new tinycrypt code paths.

Tested on native and microbit-v2; on the latter this takes some time, be patient.

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16464

-- Commit Summary --

  * pkg/tinycrypt: Avoid pulling in default_CSPRNG
  * pkg/libcose: Update version

-- File Changes --

    M pkg/libcose/Makefile (2)
    M pkg/libcose/Makefile.dep (3)
    M pkg/libcose/Makefile.include (3)
    M pkg/libcose/patches/0001-RIOT-Use-RIOT-random_bytes-function-instead-of-rando.patch (15)
    M pkg/tinycrypt/Makefile (4)
    A pkg/tinycrypt/Makefile.tinycrypt (1)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16464.patch
https://github.com/RIOT-OS/RIOT/pull/16464.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16464
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210510/bd1a4053/attachment.htm>


More information about the notifications mailing list