mesh: Align appkey_packet_decrypt with dev and virt variants.
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Thu, 3 Oct 2019 20:07:47 +0000 (13:07 -0700)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 16:52:59 +0000 (22:22 +0530)
commit3e88cfa44ecb6eed2d0bec31d59551b550ee566d
tree4f036e6e523d8ee450a6517a948d8207b7d1b354
parent46cf46ae1b47e41227eb842694938ecfd72ad3f2
mesh: Align appkey_packet_decrypt with dev and virt variants.

Move appkey_packet_decrypt to mesh/model, rename it to
app_packet_decrypt, make it private and change arguments to be aligned
with other decryption functions.

Also, simplify the implementation using an inline loop, removing the
need of mod_decrypt struct.

Change-Id: I0eb810553d8947a9cbeaf4469104ba69f31579e8
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/appkey.c
mesh/appkey.h
mesh/model.c