From cdeaf007fe0f67d2f90f97554133f8acf7256e3f Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 7 Jan 2022 17:24:14 +0100 Subject: [PATCH] pkg/ndn-riot: add patch to fix CIPHER_AES_128 removal --- ...recated-CIPHER_AES_128-by-CIPHER_AES.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkg/ndn-riot/patches/0006-replace-deprecated-CIPHER_AES_128-by-CIPHER_AES.patch diff --git a/pkg/ndn-riot/patches/0006-replace-deprecated-CIPHER_AES_128-by-CIPHER_AES.patch b/pkg/ndn-riot/patches/0006-replace-deprecated-CIPHER_AES_128-by-CIPHER_AES.patch new file mode 100644 index 0000000000..fd0a30a1f0 --- /dev/null +++ b/pkg/ndn-riot/patches/0006-replace-deprecated-CIPHER_AES_128-by-CIPHER_AES.patch @@ -0,0 +1,34 @@ +From a69fe71eb8e915db21bda6879ce0f8b768e5982d Mon Sep 17 00:00:00 2001 +From: Alexandre Abadie +Date: Fri, 7 Jan 2022 17:20:46 +0100 +Subject: [PATCH] replace deprecated CIPHER_AES_128 by CIPHER_AES + +--- + encoding/data.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/encoding/data.c b/encoding/data.c +index 6abf186..afebde4 100644 +--- a/encoding/data.c ++++ b/encoding/data.c +@@ -437,7 +437,7 @@ ndn_shared_block_t* ndn_data_encrypt_with_ccm(ndn_block_t* name, + + // Initiate cipher + cipher_t cipher; +- if (cipher_init(&cipher, CIPHER_AES_128, key, key_len) < 0) { ++ if (cipher_init(&cipher, CIPHER_AES, key, key_len) < 0) { + DEBUG("ndn_encoding: cannot init ccm cipher for encryption\n"); + return NULL; + } +@@ -1027,7 +1027,7 @@ ndn_shared_block_t* ndn_data_decrypt_with_ccm(ndn_block_t* block, + + // Initiate cipher + cipher_t cipher; +- if (cipher_init(&cipher, CIPHER_AES_128, key, key_len) < 0) { ++ if (cipher_init(&cipher, CIPHER_AES, key, key_len) < 0) { + DEBUG("ndn_encoding: cannot init ccm cipher for decryption\n"); + return NULL; + } +-- +2.32.0 +